diff --git a/lemon/lp_base.h b/lemon/lp_base.h --- a/lemon/lp_base.h +++ b/lemon/lp_base.h @@ -1618,7 +1618,7 @@ /// inline LpBase::Constr operator<=(const LpBase::Expr &e, const LpBase::Expr &f) { - return LpBase::Constr(0, f - e, LpBase::INF); + return LpBase::Constr(0, f - e, LpBase::NaN); } ///Create constraint @@ -1636,7 +1636,7 @@ /// inline LpBase::Constr operator<=(const LpBase::Expr &e, const LpBase::Value &f) { - return LpBase::Constr(- LpBase::INF, e, f); + return LpBase::Constr(LpBase::NaN, e, f); } ///Create constraint @@ -1645,7 +1645,7 @@ /// inline LpBase::Constr operator>=(const LpBase::Expr &e, const LpBase::Expr &f) { - return LpBase::Constr(0, e - f, LpBase::INF); + return LpBase::Constr(0, e - f, LpBase::NaN); } @@ -1665,7 +1665,7 @@ /// inline LpBase::Constr operator>=(const LpBase::Expr &e, const LpBase::Value &f) { - return LpBase::Constr(f, e, LpBase::INF); + return LpBase::Constr(f, e, LpBase::NaN); } ///Create constraint