COIN-OR::LEMON - Graph Library

Changeset 903:207ba6c0f2e4 in lemon


Ignore:
Timestamp:
12/10/09 09:09:08 (9 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Message:

Fix LpBase::addRow(Constr) (#334)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r833 r903  
    12301230      Row r; 
    12311231      c.expr().simplify(); 
    1232       r._id = _addRowId(_addRow(c.lowerBounded()?c.lowerBound():-INF,  
     1232      r._id = _addRowId(_addRow(c.lowerBounded()?c.lowerBound()-*c.expr():-INF,  
    12331233                                ExprIterator(c.expr().comps.begin(), cols), 
    12341234                                ExprIterator(c.expr().comps.end(), cols), 
    1235                                 c.upperBounded()?c.upperBound():INF)); 
     1235                                c.upperBounded()?c.upperBound()-*c.expr():INF)); 
    12361236      return r; 
    12371237    } 
Note: See TracChangeset for help on using the changeset viewer.