解多元非线性函数的最小值问题。

如上图所示的多元函数,求其最小值,网上查了下fmincon这个函数好像可以求最小值,但是那个约束条件不知道怎么弄,希望高手指点一下,感激不尽!

 Risposta accettata

jadibad
jadibad il 19 Nov 2022

0 voti

看看帮助就搞的定
lb=[646690 0.15 0.15 0.3]';
ub=[2586760 0.25 0.25 0.4]';
x0=[700000 0.2 0.2 0.35]';
[x,fval,exitflag,output,lambda]=fmincon(@optfuncc,x0,[],[],[],[],lb,ub);
function y=optfuncc(x)
y=0.0222*x(1)^0.1135*x(2)^(-0.2736)*x(3)^(-0.2905)*x(4)^(-0.7167);
end
format long
x
fval

Più risposte (0)

Tag

Richiesto:

il 19 Nov 2022

Risposto:

il 19 Nov 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!