optimization function in matlab
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Torsten
il 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 Commento
mohammed hussein
il 30 Nov 2015
Categorie
Scopri di più su Linear Least Squares 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!