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

5 vues (au cours des 30 derniers jours)
Olivier Gouveia
Olivier Gouveia le 27 Oct 2016
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.

Réponses (0)

Catégories

En savoir plus sur Manual Performance Optimization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by