COIN-OR::LEMON - Graph Library

Changes in / [958:9a716871028e:956:4dd3dc8eb5a7] in lemon-main


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r958 r877  
    16191619  inline LpBase::Constr operator<=(const LpBase::Expr &e,
    16201620                                   const LpBase::Expr &f) {
    1621     return LpBase::Constr(0, f - e, LpBase::NaN);
     1621    return LpBase::Constr(0, f - e, LpBase::INF);
    16221622  }
    16231623
     
    16371637  inline LpBase::Constr operator<=(const LpBase::Expr &e,
    16381638                                   const LpBase::Value &f) {
    1639     return LpBase::Constr(LpBase::NaN, e, f);
     1639    return LpBase::Constr(- LpBase::INF, e, f);
    16401640  }
    16411641
     
    16461646  inline LpBase::Constr operator>=(const LpBase::Expr &e,
    16471647                                   const LpBase::Expr &f) {
    1648     return LpBase::Constr(0, e - f, LpBase::NaN);
     1648    return LpBase::Constr(0, e - f, LpBase::INF);
    16491649  }
    16501650
     
    16661666  inline LpBase::Constr operator>=(const LpBase::Expr &e,
    16671667                                   const LpBase::Value &f) {
    1668     return LpBase::Constr(f, e, LpBase::NaN);
     1668    return LpBase::Constr(f, e, LpBase::INF);
    16691669  }
    16701670
  • test/lp_test.cc

    r957 r631  
    167167    c = ((2 >= p1) >= 3);
    168168
    169     { //Tests for #430
    170       LP::Col v=lp.addCol();
    171       LP::Constr c = v >= -3;
    172       c = c <= 4;
    173       LP::Constr c2;
    174       c2 = -3 <= v <= 4;
    175     }
    176 
    177169    e[x[3]]=2;
    178170    e[x[3]]=4;
Note: See TracChangeset for help on using the changeset viewer.