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

Commit

Permalink
not in class
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Nov 14, 2023
1 parent c74d86b commit 0bff3b9
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 @@ -24,7 +24,7 @@ void CasADiOpti::SetInitial(const casadi::MX& expression, double value) {
opti.set_initial(expression, value);
}
void CasADiOpti::Solve() {
callback = CasADiIterCallback("f", opti.nx(), opti.ng(), opti.np());
auto callback = CasADiIterCallback("f", opti.nx(), opti.ng(), opti.np());
#ifdef DEBUG_OUTPUT
// 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.
Expand Down

0 comments on commit 0bff3b9

Please sign in to comment.