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

Commit

Permalink
fix return types
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Nov 14, 2023
1 parent 730a4d9 commit ffb0767
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/optimization/CasADiIterCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CasADiIterCallback : public Callback {
~CasADiIterCallback() override {}

// Number of inputs and outputs
casadi_int get_n_in() override { return 1;}
casadi_int get_n_in() override { return 5;}
casadi_int get_n_out() override { return 1;}

// Initialize the object
Expand All @@ -24,8 +24,7 @@ class CasADiIterCallback : public Callback {

// Evaluate numerically
std::vector<DM> eval(const std::vector<DM>& arg) const override {
DM x = arg.at(0);
DM f = sin(d*x);
return 1;
std::cout << "eval" << std::endl;
return {1};
}
};

0 comments on commit ffb0767

Please sign in to comment.