How do I configure my model to read model workspace variables?

4 ビュー (過去 30 日間)
Konstantinos Tsitsilonis
Konstantinos Tsitsilonis 2017 年 10 月 4 日
回答済み: Mazin Mogadem 2020 年 9 月 9 日
Hi all,
I am running a simple model in Simulink and I want to optimise it.
I have used the Model Explorer to set the Variables I want to optmized, and named the respective Gain blocks accordingly.
However, when in the Response Optimisation, I click to select Design Variables Set -> click on New, an error comes up which says:
The model does not use any base or model workspace variables. Configure the model to use base or model
workspace variables for optimization.
I thought by following the above procedure, I have already configured my model as such. So how can I configure my model to run optimisation?
Thanks for your help in advance,
KMT.

回答 (2 件)

Marco
Marco 2017 年 10 月 4 日
Hello, If in your model, you don't need to use some workspace variable it is not necessary to optimize your model also for this part.
BR Marco
  1 件のコメント
Konstantinos Tsitsilonis
Konstantinos Tsitsilonis 2017 年 10 月 5 日
編集済み: Konstantinos Tsitsilonis 2017 年 10 月 5 日
Thanks for your answer Marco!
I do not understand the following then: I have three gain blocks and I would like to find their optimum combination of values such that my response has some of the desired characteristics that I want. For example these requirements are: overshoot less than 5% and attain its steady state in less than 0.3 seconds
If it is not necessary to optimise, then how would I do this? I am trying avoid changing values manually and running the model to check whether it fulfils the response requirements I have set

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


Mazin Mogadem
Mazin Mogadem 2020 年 9 月 9 日
brother i'm now facing the same problem of you, if you please find an answear please share it

カテゴリ

Help Center および File ExchangeManual Performance Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by