optimization function in matlab
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Torsten
el 30 de Nov. de 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 comentario
mohammed hussein
el 30 de Nov. de 2015
Categorías
Más información sobre Linear Least Squares en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!