optimization function in matlab
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Torsten
am 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 Kommentar
mohammed hussein
am 30 Nov. 2015
Kategorien
Mehr zu Linear Least Squares finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!