Merge
authorAlpar Juttner <alpar@cs.elte.hu>
Mon, 15 Feb 2010 09:03:11 +0100
changeset 904b9b2e8abe70b
parent 902 d2bc45e8f6f2
parent 903 207ba6c0f2e4
child 905 c841ae1aca29
Merge
     1.1 --- a/lemon/lp_base.h	Sun Feb 14 23:14:09 2010 +0100
     1.2 +++ b/lemon/lp_base.h	Mon Feb 15 09:03:11 2010 +0100
     1.3 @@ -1229,10 +1229,10 @@
     1.4      Row addRow(const Constr &c) {
     1.5        Row r;
     1.6        c.expr().simplify();
     1.7 -      r._id = _addRowId(_addRow(c.lowerBounded()?c.lowerBound():-INF, 
     1.8 +      r._id = _addRowId(_addRow(c.lowerBounded()?c.lowerBound()-*c.expr():-INF, 
     1.9                                  ExprIterator(c.expr().comps.begin(), cols),
    1.10                                  ExprIterator(c.expr().comps.end(), cols),
    1.11 -                                c.upperBounded()?c.upperBound():INF));
    1.12 +                                c.upperBounded()?c.upperBound()-*c.expr():INF));
    1.13        return r;
    1.14      }
    1.15      ///Erase a column (i.e a variable) from the LP