I am solving a nonlinear Model predictive control problem . I get the following error. Can anybody help me understand the error report?
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Sargondjani
2021-6-23
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 个评论
Sargondjani
2021-6-24
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?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!