Fixing lp constraints (solving ticket #92)
authordeba
Fri, 16 May 2008 12:28:23 +0000
changeset 2609c36f00f19f2b
parent 2608 207efbaea269
child 2610 52cf8f8f25b4
Fixing lp constraints (solving ticket #92)
lemon/lp_base.h
     1.1 --- a/lemon/lp_base.h	Sat Apr 19 13:04:51 2008 +0000
     1.2 +++ b/lemon/lp_base.h	Fri May 16 12:28:23 2008 +0000
     1.3 @@ -1539,7 +1539,7 @@
     1.4    inline LpSolverBase::Constr operator<=(const LpSolverBase::Expr &e,
     1.5  					 const LpSolverBase::Value &f) 
     1.6    {
     1.7 -    return LpSolverBase::Constr(e,f);
     1.8 +    return LpSolverBase::Constr(-LpSolverBase::INF,e,f);
     1.9    }
    1.10  
    1.11    ///\e
    1.12 @@ -1571,7 +1571,7 @@
    1.13    inline LpSolverBase::Constr operator>=(const LpSolverBase::Expr &e,
    1.14  					 const LpSolverBase::Value &f) 
    1.15    {
    1.16 -    return LpSolverBase::Constr(f,e);
    1.17 +    return LpSolverBase::Constr(f,e,LpSolverBase::INF);
    1.18    }
    1.19  
    1.20    ///\e