COIN-OR::LEMON - Graph Library

Changeset 834:207ba6c0f2e4 in lemon-1.2 for lemon


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_base.h

    r786 r834  
    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.