Matlab Simulink model to stabilize non-linear dynamics of double inverted pendulum on cart using Model Predictive Controller (MPC)
If you face below issue while designing/ tuning MPC:
Please follow the solution on https://www.mathworks.com/matlabcentral/answers/403735-how-to-save-mpc-model-predictive-controller-to-be-used-later-on-the-error-message-is-attached