optimization function in matlab
Afficher commentaires plus anciens
i would like to ask about the optimization in matlab function that works with multi variable input with each input has different boundaries the output is only one variables
Réponse acceptée
Plus de réponses (1)
Torsten
le 30 Nov 2015
fun = @(x)(x(1)-5)^2+(x(2)+6)^2+x(3);
x0 = [1 1 1];
Lb=[0 -1 2];
Ub=[1 2 3];
[x,fval,exitflag,output] = fmincon(fun,x0,[],[],[],[],Lb,Ub);
disp(fval)
Best wishes
Torsten.
1 commentaire
mohammed hussein
le 30 Nov 2015
Catégories
En savoir plus sur Linear Least Squares dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!