[Lemon-commits] Balazs Dezso: Fix lp indexing bug (#205)

Lemon HG hg at lemon.cs.elte.hu
Sun Jan 18 21:29:28 CET 2009


details:   http://lemon.cs.elte.hu/hg/lemon/rev/fb5af0411793
changeset: 494:fb5af0411793
user:      Balazs Dezso <deba [at] inf.elte.hu>
date:      Sun Jan 18 17:49:08 2009 +0100
description:
	Fix lp indexing bug (#205)

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
lemon/lp_base.h |    4 ++--

diffs (14 lines):

diff --git a/lemon/lp_base.h b/lemon/lp_base.h
--- a/lemon/lp_base.h
+++ b/lemon/lp_base.h
@@ -1067,8 +1067,8 @@
     ///a better one.
     void col(Col c, const DualExpr &e) {
       e.simplify();
-      _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), cols),
-                    ExprIterator(e.comps.end(), cols));
+      _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), rows),
+                    ExprIterator(e.comps.end(), rows));
     }
 
     ///Get a column (i.e a dual constraint) of the LP



More information about the Lemon-commits mailing list