How to do a multiple variable optimization in MatLab + SimuLink?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manual Performance Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!