Problem while Implementing MPC(model predictive control) in casadi-c++ #3114
-
I have problem creating a solver in the last line in following code:
And here is the exception(i have no idea what is the problem): terminate called after throwing an instance of 'casadi::CasadiException' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @KirollosMedhat |
Beta Was this translation helpful? Give feedback.
Hi @KirollosMedhat
The overload with
Function
as nlp is not in the public API.I suggest you switch over to the standard, expression based API cfr https://github.com/casadi/casadi/blob/master/docs/examples/cplusplus/rosenbrock.cpp