lemon/lp_base.h
branch1.1
changeset 1093 472b7885ae46
parent 1081 f1398882a928
parent 1092 2eebc8f7dca5
child 1141 c3a7ca108705
     1.1 --- a/lemon/lp_base.h	Mon Oct 24 21:39:34 2011 +0200
     1.2 +++ b/lemon/lp_base.h	Tue Nov 01 13:43:20 2011 +0100
     1.3 @@ -1604,7 +1604,7 @@
     1.4    ///
     1.5    inline LpBase::Constr operator<=(const LpBase::Expr &e,
     1.6                                     const LpBase::Expr &f) {
     1.7 -    return LpBase::Constr(0, f - e, LpBase::INF);
     1.8 +    return LpBase::Constr(0, f - e, LpBase::NaN);
     1.9    }
    1.10  
    1.11    ///Create constraint
    1.12 @@ -1622,7 +1622,7 @@
    1.13    ///
    1.14    inline LpBase::Constr operator<=(const LpBase::Expr &e,
    1.15                                     const LpBase::Value &f) {
    1.16 -    return LpBase::Constr(- LpBase::INF, e, f);
    1.17 +    return LpBase::Constr(LpBase::NaN, e, f);
    1.18    }
    1.19  
    1.20    ///Create constraint
    1.21 @@ -1631,7 +1631,7 @@
    1.22    ///
    1.23    inline LpBase::Constr operator>=(const LpBase::Expr &e,
    1.24                                     const LpBase::Expr &f) {
    1.25 -    return LpBase::Constr(0, e - f, LpBase::INF);
    1.26 +    return LpBase::Constr(0, e - f, LpBase::NaN);
    1.27    }
    1.28  
    1.29  
    1.30 @@ -1651,7 +1651,7 @@
    1.31    ///
    1.32    inline LpBase::Constr operator>=(const LpBase::Expr &e,
    1.33                                     const LpBase::Value &f) {
    1.34 -    return LpBase::Constr(f, e, LpBase::INF);
    1.35 +    return LpBase::Constr(f, e, LpBase::NaN);
    1.36    }
    1.37  
    1.38    ///Create constraint