Commit 3f83e4f2 authored by David Bommes's avatar David Bommes
Browse files

minor improvement (reserve space of vector)

git-svn-id: 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent c7babc60
......@@ -310,7 +310,7 @@ solve(NProblemInterface* _problem,
<< _discrete_constraints[i].first << " vs " << vtypes.size() << std::endl;
// CPLEX variables
std::vector<IloNumVar> vars;
std::vector<IloNumVar> vars; vars.reserve(_problem->n_unknowns());
// first all
for( int i=0; i<_problem->n_unknowns(); ++i)
Supports Markdown
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