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

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Nov 14, 2023
1 parent 207ee85 commit 730a4d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/optimization/CasADiIterCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CasADiIterCallback : public Callback {
casadi_int get_n_out() override { return 1;}

// Initialize the object
void init() override() {
void init() override {
std::cout << "initializing object" << std::endl;
}

Expand Down
2 changes: 1 addition & 1 deletion src/optimization/CasADiOpti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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["ipopt.iteration_callback"] = MyCallback("f", 0.5);
pluginOptions["ipopt.iteration_callback"] = CasADiIterCallback("f", 0.5);
opti.solver("ipopt");
#else
auto pluginOptions = casadi::Dict();
Expand Down

0 comments on commit 730a4d9

Please sign in to comment.