Fix lp indexing bug (#205)
authorBalazs Dezso <deba@inf.elte.hu>
Sun, 18 Jan 2009 17:49:08 +0100
changeset 494fb5af0411793
parent 493 81627fa1b007
child 495 c46afb3f67a6
Fix lp indexing bug (#205)
lemon/lp_base.h
     1.1 --- a/lemon/lp_base.h	Wed Jan 14 15:55:29 2009 +0000
     1.2 +++ b/lemon/lp_base.h	Sun Jan 18 17:49:08 2009 +0100
     1.3 @@ -1067,8 +1067,8 @@
     1.4      ///a better one.
     1.5      void col(Col c, const DualExpr &e) {
     1.6        e.simplify();
     1.7 -      _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), cols),
     1.8 -                    ExprIterator(e.comps.end(), cols));
     1.9 +      _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), rows),
    1.10 +                    ExprIterator(e.comps.end(), rows));
    1.11      }
    1.12  
    1.13      ///Get a column (i.e a dual constraint) of the LP