フィルターのクリア

How can I automate inputs in Simulink Design Optimization (with a Matlab script)

5 ビュー (過去 30 日間)
Hi there,
I am currently trying to minimize manual inputs in a simulation model, however I am having trouble implementing this. Currently a Simulink model is called via a script. After that, inputs have to be made which I want to run automatically:
1. Open Response Optimization
1.1 double-click on the "Check Against Reference" block
1.2 press "Response Optimization"
2. Create a new Design Variables Set (always with the same variables)
3. start the Optimization
Unfortunately I couldn't find anything helpful about this topic so far.
Kind Regards,
Niclas

採用された回答

Kyle Rawding
Kyle Rawding 2021 年 3 月 17 日
Hi Niclas -
Not sure if this answers your question, but would it help to use the code generation function in Response Optimizer? (After setting up the 'check against reference', your design variables, etc., then clicking the dropdown under "Optimize" on the toolstrip and selecting "Generate MATLAB function"). This would provide you with a code snippet you could add into your main script.
Hope this helps,
Kyle
  2 件のコメント
Niclas Riediger
Niclas Riediger 2021 年 3 月 17 日
Hi Kyle,
it works great and was exactly what I needed :) I can't believe it was that simple. Thanks a lot !!!
Kind Regards,
Niclas
Kyle Rawding
Kyle Rawding 2021 年 3 月 18 日
Hi Niclas -
That's wonderful! Glad I could help :) Out of curiosity, can I ask what methods you tried, or where you looked for help on this issue (including search terms)? It's also totally fine if you came to MATLAB Answers first.
Context - I'm a User Experience Designer at MathWorks, supporting this product, and the discoverability of features like this is super important to my work, so it helps to know why certain features feel "hidden" and where you would have expected to find them.
Any info helps!
-Kyle

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by