lemon/lp_base.h
changeset 1104 71fd280363d5
parent 631 33c6b6e755cd
child 1093 472b7885ae46
child 1094 140facbd1d7c
child 1140 8d281761dea4
equal deleted inserted replaced
8:6f18bf0a0c0f 14:7e23a3c1a281
  1602 
  1602 
  1603   ///\relates LpBase::Constr
  1603   ///\relates LpBase::Constr
  1604   ///
  1604   ///
  1605   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1605   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1606                                    const LpBase::Expr &f) {
  1606                                    const LpBase::Expr &f) {
  1607     return LpBase::Constr(0, f - e, LpBase::INF);
  1607     return LpBase::Constr(0, f - e, LpBase::NaN);
  1608   }
  1608   }
  1609 
  1609 
  1610   ///Create constraint
  1610   ///Create constraint
  1611 
  1611 
  1612   ///\relates LpBase::Constr
  1612   ///\relates LpBase::Constr
  1620 
  1620 
  1621   ///\relates LpBase::Constr
  1621   ///\relates LpBase::Constr
  1622   ///
  1622   ///
  1623   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1623   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1624                                    const LpBase::Value &f) {
  1624                                    const LpBase::Value &f) {
  1625     return LpBase::Constr(- LpBase::INF, e, f);
  1625     return LpBase::Constr(LpBase::NaN, e, f);
  1626   }
  1626   }
  1627 
  1627 
  1628   ///Create constraint
  1628   ///Create constraint
  1629 
  1629 
  1630   ///\relates LpBase::Constr
  1630   ///\relates LpBase::Constr
  1631   ///
  1631   ///
  1632   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1632   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1633                                    const LpBase::Expr &f) {
  1633                                    const LpBase::Expr &f) {
  1634     return LpBase::Constr(0, e - f, LpBase::INF);
  1634     return LpBase::Constr(0, e - f, LpBase::NaN);
  1635   }
  1635   }
  1636 
  1636 
  1637 
  1637 
  1638   ///Create constraint
  1638   ///Create constraint
  1639 
  1639 
  1649 
  1649 
  1650   ///\relates LpBase::Constr
  1650   ///\relates LpBase::Constr
  1651   ///
  1651   ///
  1652   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1652   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1653                                    const LpBase::Value &f) {
  1653                                    const LpBase::Value &f) {
  1654     return LpBase::Constr(f, e, LpBase::INF);
  1654     return LpBase::Constr(f, e, LpBase::NaN);
  1655   }
  1655   }
  1656 
  1656 
  1657   ///Create constraint
  1657   ///Create constraint
  1658 
  1658 
  1659   ///\relates LpBase::Constr
  1659   ///\relates LpBase::Constr