I am solving a nonlinear Model predictive control problem . I get the following error. Can anybody help me understand the error report?

 Accepted Answer

The error says that the derivative at the initial point (x0) is either NaN, infinity, or complex. So you should check whether that is supposed to be the case. If this is only a local problem, you could use a slightly different starting value for x0

4 Comments

Thank you, I could debug the error based on your advice. But I have some more error, could you please look into it.
Apperently you used a non-linear constraint, and also is either NaN, infinity or complex at the initial point.
But i have not used any nonlinear constarints. I think it wants me to use Nonlinear constraint function at initial point. Can you sugest possible corrections?
I need to see your code (minimal working example would be great), otherwise it's hard to help you
Maybe you specified a non linear constraint, without intending to do so?

Sign in to comment.

More Answers (0)

Categories

Asked:

on 23 Jun 2021

Commented:

on 24 Jun 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!