フィルターのクリア

how to add disturbance into MPC block without remaking it from the beginning?

4 ビュー (過去 30 日間)
Mounira
Mounira 2024 年 5 月 24 日
回答済み: Anshuman 2024 年 6 月 19 日
Hello,
so i am trying to add imports inputs and output to MPC;
but I keep having this error: "hessian matruix to the QP problem close to singular, augmenting diagonal terms";
any suggestion?
I tried to change the solver, but it didn't work;

回答 (1 件)

Anshuman
Anshuman 2024 年 6 月 19 日
Hi Mounira,
One of the possible reason behind this error coud be incorrect constraints. You can verify the inputs and constraints of your MPC problem as highly restrictive constraints can lead to a nearly singular Hessian matrix.You can also consider adding a small regularization term to the diagonal elements of the Hessian matrix. This process, known as regularization, can help improve the numerical stability of the problem.
Although changing the solver didn't work initially, but you can try using different QP solvers. Some solvers are better equipped to handle numerical issues than others. Exploring solvers with different algorithms might yield better results.

カテゴリ

Help Center および File ExchangeLinear Plant Specification についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by