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

Commit

Permalink
fix pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Nov 14, 2023
1 parent 6590da4 commit 1a900d4
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 don't try-catch this next line since it should always work.
// I'm assuming the dynamic lib is on the path and casadi can find it.
auto pluginOptions = casadi::Dict();
pluginOptions["iteration_callback"] = &callback;
pluginOptions["iteration_callback"] = *callback;
//auto reference = &pluginOptions["iteration_callback"];
opti.solver("ipopt", pluginOptions);
#else
Expand Down

0 comments on commit 1a900d4

Please sign in to comment.