# HG changeset patch
# User Alpar Juttner <alpar@cs.elte.hu>
# Date 1320151986 -3600
# Node ID 140facbd1d7cc9e877b0afa06b0da0bc67d6c1e9
# Parent  c1a959df3b2c7aebbd8031993caac3b12433f462# Parent  2eebc8f7dca5ad761c939d1a7443791e85b7ec08
Merge bugfix #430 to branch 1.2

diff -r c1a959df3b2c -r 140facbd1d7c lemon/lp_base.h
--- a/lemon/lp_base.h	Mon Oct 24 21:40:31 2011 +0200
+++ b/lemon/lp_base.h	Tue Nov 01 13:53:06 2011 +0100
@@ -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
diff -r c1a959df3b2c -r 140facbd1d7c test/lp_test.cc
--- a/test/lp_test.cc	Mon Oct 24 21:40:31 2011 +0200
+++ b/test/lp_test.cc	Tue Nov 01 13:53:06 2011 +0100
@@ -166,6 +166,14 @@
     c = ((2 >= e) >= 3);
     c = ((2 >= p1) >= 3);
 
+    { //Tests for #430
+      LP::Col v=lp.addCol();
+      LP::Constr c = v >= -3;
+      c = c <= 4;
+      LP::Constr c2;
+      c2 = -3 <= v <= 4;
+    }
+
     e[x[3]]=2;
     e[x[3]]=4;
     e[x[3]]=1;