Nonlinear model predictive control slack variable negative

Hello,
I'm using the Nonlinear MPC on Simulink.
Why I get the error:
  • All entries of input All entries of input Slack0 must be nonnegative. must be nonnegative.
I have tried to change the weight on the slack variable ε (in the cost function), but this doesn't always work.
Thank you

1 件のコメント

Mert Buyukkopru
Mert Buyukkopru 2023 年 1 月 6 日
Hi,
I have same problem in Nonlinear MPC, Could you please share how to define the slack variable in Constraint function ?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeModel Predictive Control Toolbox についてさらに検索

質問済み:

2020 年 6 月 21 日

コメント済み:

2023 年 1 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by