[Lemon-commits] deba: r3494 - lemon/trunk/lemon

Lemon SVN svn at lemon.cs.elte.hu
Fri May 16 14:28:24 CEST 2008


Author: deba
Date: Fri May 16 14:28:23 2008
New Revision: 3494

Modified:
   lemon/trunk/lemon/lp_base.h

Log:
Fixing lp constraints (solving ticket #92)


Modified: lemon/trunk/lemon/lp_base.h
==============================================================================
--- lemon/trunk/lemon/lp_base.h	(original)
+++ lemon/trunk/lemon/lp_base.h	Fri May 16 14:28:23 2008
@@ -1539,7 +1539,7 @@
   inline LpSolverBase::Constr operator<=(const LpSolverBase::Expr &e,
 					 const LpSolverBase::Value &f) 
   {
-    return LpSolverBase::Constr(e,f);
+    return LpSolverBase::Constr(-LpSolverBase::INF,e,f);
   }
 
   ///\e
@@ -1571,7 +1571,7 @@
   inline LpSolverBase::Constr operator>=(const LpSolverBase::Expr &e,
 					 const LpSolverBase::Value &f) 
   {
-    return LpSolverBase::Constr(f,e);
+    return LpSolverBase::Constr(f,e,LpSolverBase::INF);
   }
 
   ///\e



More information about the Lemon-commits mailing list