How to do a multiple variable optimization in MatLab + SimuLink?

3 ビュー (過去 30 日間)
Olivier Gouveia
Olivier Gouveia 2016 年 10 月 27 日
I am simulating a half-car suspension model in Simulink. The program has multiple variables as inputs, defined in a MatLab file, and has 1 output. The simulation time is 10s with a fixed time-step of 0.001s.
Of these multiple input variables, I want to discover which is the best combination of front and rear damping rates, Cf and Cr, respectively. These values of Cf and Cr are defined in an array: 1000:100:3000, for both Cf and Cr.
What I want to do is the following:
For each value of Cf, I want to test all the values of Cr in my Simulink model and get my output value, in order to time t, and obtain the RMS value of it. In other words, at the end, I want to come up with a 3-d matrix:
Cf1 Cf2 ... Cfx
Cr1 RMS1,1 RMS1,2 ... RMS1,x
Cr2 RMS2,1 RMS2,2 ... RMS2,x
. . . .
Crx RMSx,1 RMSx,2 ... RMSx,x
How do you suggest I can possibly do this?
Thank you for your time.

回答 (0 件)

カテゴリ

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