Time-Varying constraint over the prediction horizon in run time on SImulink

1 回表示 (過去 30 日間)
Giulio Borrello
Giulio Borrello 2020 年 7 月 10 日
コメント済み: dekun wang 2021 年 6 月 7 日
Goodmorning to everyone,
I'm trying to explore the possibility to change the MO constraints over the prediction horizon in run time (for example by passing a (N _predhor by N_MO) vector ate te input port ymin and ymax). My model is a simple double integrator and for that reason i'm using the Simulink block 'MPC Controller' (on Matlab 2018b). From the reference page :
seems that it is possible. But when i use a (N _predhor x N_MO) vector simulink returns me this error:
Error in port widths or dimensions. The signal connected to the "ymax" port of the "simul/Longitudinal MPC" block must be a row or column vector signal with 2 elements.
Can anyone help me ?

回答 (1 件)

dekun wang
dekun wang 2021 年 5 月 18 日
I have the same question and waiting for an answer for too long

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by