optimization function in matlab
古いコメントを表示
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
採用された回答
その他の回答 (1 件)
Torsten
2015 年 11 月 30 日
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.
カテゴリ
ヘルプ センター および File Exchange で Linear Least Squares についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!