[Simulink Design Optimization] The cost function of suspension parameters.
조회 수: 1 (최근 30일)
이전 댓글 표시
I am analysing a suspension system to find optimized Ks and Cs(Orange ones in model). This is my model in Simulink:
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.
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 don not kown what's wrong with it.Hope you can help me.
If necessary, I will upload this model.
댓글 수: 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!