Skip to content

Commit

Permalink
MP2NL: Fix OnDualSolution() #237
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Nov 13, 2024
1 parent 777e0e0 commit 1b7e77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solvers/mp2nl/mp2nlmodelapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ class MP2NLSolverImpl
"MP2NL_subsolver_solution_fewer_alg_cons",
"The subsolver reported fewer duals than algebraic constraints");
}
duals_.reserve(nac_sol);
duals_.resize(nac_sol);
int j=0;
for ( ; rd.Size(); ++j ) {
int j0 = mapi_.GetOldAlgConIndex(j);
Expand Down

0 comments on commit 1b7e77c

Please sign in to comment.