
Module: ppl/ppl Branch: sparse_matrices Commit: eb4d309115ff8e2eb87b8909e91da407f37ab579 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=eb4d309115ff8...
Author: Marco Poletti poletti.marco@gmail.com Date: Sun Apr 11 18:54:23 2010 +0200
PIP_Solution_Node: fix NOISY_PIP section in generate_cut().
---
src/PIP_Tree.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/PIP_Tree.cc b/src/PIP_Tree.cc index 97033ca..eb24bfb 100644 --- a/src/PIP_Tree.cc +++ b/src/PIP_Tree.cc @@ -3330,7 +3330,7 @@ PIP_Solution_Node::generate_cut(const dimension_type index, using namespace IO_Operators; Variables_Set::const_iterator p = parameters.begin(); Linear_Expression expr1(ctx1.get(0)); - Linear_Expression expr2(ctx2_0); + Linear_Expression expr2(ctx2.get(0)); for (dimension_type j = 1; j <= num_params; ++j, ++p) { expr1 += ctx1.get(j) * Variable(*p); expr2 += ctx2.get(j) * Variable(*p);