Skip to content

Commit

Permalink
Allow again Ipopt to be warmstarted with an initial point
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaslundell committed Dec 5, 2023
1 parent 424b5e4 commit 2020969
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/NLPSolver/NLPSolverIpoptBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ bool IpoptProblem::get_starting_point(Index n, [[maybe_unused]] bool init_x, [[m
[[maybe_unused]] bool init_z, [[maybe_unused]] Number* z_L, [[maybe_unused]] Number* z_U, [[maybe_unused]] Index m,
[[maybe_unused]] bool init_lambda, [[maybe_unused]] Number* lambda)
{
/*
assert(init_x == true);
assert(init_z == false);
assert(init_lambda == false);
Expand Down Expand Up @@ -295,7 +294,7 @@ bool IpoptProblem::get_starting_point(Index n, [[maybe_unused]] bool init_x, [[m
x[k] = variableLB;
else
x[k] = variableUB;
}*/
}

return (true);
}
Expand Down Expand Up @@ -903,8 +902,7 @@ void NLPSolverIpoptBase::setInitialSettings()
// ipoptApplication->Options()->SetStringValue("ma86_order", "auto", true, true);
ipoptApplication->Options()->SetStringValue("mu_oracle", "probing", true, true);
ipoptApplication->Options()->SetStringValue("expect_infeasible_problem", "yes", true, true);
ipoptApplication->Options()->SetStringValue("warm_start_init_point", "no", true,
true); // Cannot warm start since we do not have all required info, just a starting point
ipoptApplication->Options()->SetStringValue("warm_start_init_point", "no", true, true);
ipoptApplication->Options()->SetNumericValue("gamma_phi", 1e-8, true, true);
ipoptApplication->Options()->SetNumericValue("gamma_theta", 1e-4, true, true);
ipoptApplication->Options()->SetNumericValue("required_infeasibility_reduction", 0.1, true, true);
Expand Down

0 comments on commit 2020969

Please sign in to comment.