lemon/lp_base.h
changeset 980 48e17328c155
parent 877 141f9c0db4a3
parent 957 2eebc8f7dca5
child 989 38e1d4383262
equal deleted inserted replaced
12:c50cc48e74ea 14:7dd79d4cf805
  1616 
  1616 
  1617   ///\relates LpBase::Constr
  1617   ///\relates LpBase::Constr
  1618   ///
  1618   ///
  1619   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1619   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1620                                    const LpBase::Expr &f) {
  1620                                    const LpBase::Expr &f) {
  1621     return LpBase::Constr(0, f - e, LpBase::INF);
  1621     return LpBase::Constr(0, f - e, LpBase::NaN);
  1622   }
  1622   }
  1623 
  1623 
  1624   ///Create constraint
  1624   ///Create constraint
  1625 
  1625 
  1626   ///\relates LpBase::Constr
  1626   ///\relates LpBase::Constr
  1634 
  1634 
  1635   ///\relates LpBase::Constr
  1635   ///\relates LpBase::Constr
  1636   ///
  1636   ///
  1637   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1637   inline LpBase::Constr operator<=(const LpBase::Expr &e,
  1638                                    const LpBase::Value &f) {
  1638                                    const LpBase::Value &f) {
  1639     return LpBase::Constr(- LpBase::INF, e, f);
  1639     return LpBase::Constr(LpBase::NaN, e, f);
  1640   }
  1640   }
  1641 
  1641 
  1642   ///Create constraint
  1642   ///Create constraint
  1643 
  1643 
  1644   ///\relates LpBase::Constr
  1644   ///\relates LpBase::Constr
  1645   ///
  1645   ///
  1646   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1646   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1647                                    const LpBase::Expr &f) {
  1647                                    const LpBase::Expr &f) {
  1648     return LpBase::Constr(0, e - f, LpBase::INF);
  1648     return LpBase::Constr(0, e - f, LpBase::NaN);
  1649   }
  1649   }
  1650 
  1650 
  1651 
  1651 
  1652   ///Create constraint
  1652   ///Create constraint
  1653 
  1653 
  1663 
  1663 
  1664   ///\relates LpBase::Constr
  1664   ///\relates LpBase::Constr
  1665   ///
  1665   ///
  1666   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1666   inline LpBase::Constr operator>=(const LpBase::Expr &e,
  1667                                    const LpBase::Value &f) {
  1667                                    const LpBase::Value &f) {
  1668     return LpBase::Constr(f, e, LpBase::INF);
  1668     return LpBase::Constr(f, e, LpBase::NaN);
  1669   }
  1669   }
  1670 
  1670 
  1671   ///Create constraint
  1671   ///Create constraint
  1672 
  1672 
  1673   ///\relates LpBase::Constr
  1673   ///\relates LpBase::Constr