Commit d620c759 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Using the += operator with GRBLinExpr is way more performant than going x = x + ...


git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@254 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 1fea1fd1
......@@ -99,7 +99,7 @@ solve(NProblemInterface* _problem,
NConstraintInterface::SVectorNC::InnerIterator v_it(gc);
for(; v_it; ++v_it)
// lin_expr += v_it.value()*vars[v_it.index()];
lin_expr = lin_expr + vars[v_it.index()]*v_it.value();
lin_expr += vars[v_it.index()]*v_it.value();
double b = _constraints[i]->eval_constraint(P(x));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment