Effacer les filtres
Effacer les filtres

[Simulink Design Optimization] The cost function of suspension parameters.

1 vue (au cours des 30 derniers jours)
xiao yang
xiao yang le 30 Nov 2018
Modifié(e) : xiao yang le 30 Nov 2018
I am analysing a suspension system to find optimized Ks and Cs(Orange ones in model). This is my model in Simulink:
model.png
Some errorrs occured in the cost funtion I put below.
function BAcost = CostF(data)
% CostFunction to compute BA with different Cs & Ks.
V = data.Nominal.BVelocity;
A = diff(V.Data)./diff(V.Time);
BAcost = max(abs(A));
end
Eorrors are shown as this.
error.png
The final line means that This type of variable does not support indexing using points.
The Input signal in the left of the Green box is a 40001*2 matrix of Gauss White Noise which contains time and power.
I write this code with reference to this cost function found in mathworks website.(this site)
I don not kown what's wrong with it.Hope you can help me.
If necessary, I will upload this model.

Réponses (0)

Catégories

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

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by