Function with many outputs
Mostra commenti meno recenti
I have this function [Y_1,Y_2,Y_3,Y_4]=MyFun(X);
I want to optimize X according to this cost function using ga function of Matlab
J=@(X) Y_1.^2+Y_2.^2;
X=ga(J,numel(X));
How to write the cost function J knowing that Y_1 and Y_2 depend on X.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink Design Optimization in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!