Error occurred when calling NLP solver "fmincon", when using Nonlinear MPC Controller in Simulink

I was using the "Nonlinear MPC Controller" block in Simulink to conduct an MPC simulation. However, when I finished model building and started simulation, I received the error message below.
------------------------------
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Error occurred when calling NLP solver "Error occurred when calling NLP solver "fmincon". See the error report displayed above.". See the error report displayed above.
------------------------------
It confused me that the message says "See the error report displayed above", but there is actually no error report above. Only this error exists. (see the figure below) So I am wondering why this error will happen. I do not think this is caused by wrong input signals since I have checked them many times. Please help! Thanks in advance. :-)

Answers (0)

Categories

Find more on Model Predictive Control Toolbox in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 3 Nov 2022

Commented:

on 27 Mar 2023

Community Treasure Hunt

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

Start Hunting!