Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
actually pass the iteration callback
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Nov 14, 2023
1 parent ffb0767 commit 4537066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optimization/CasADiOpti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void CasADiOpti::Solve() {
// I'm assuming the dynamic lib is on the path and casadi can find it.
auto pluginOptions = casadi::Dict();
pluginOptions["ipopt.iteration_callback"] = CasADiIterCallback("f", 0.5);
opti.solver("ipopt");
opti.solver("ipopt", pluginOptions);
#else
auto pluginOptions = casadi::Dict();
pluginOptions["ipopt.print_level"] = 0;
Expand Down

0 comments on commit 4537066

Please sign in to comment.