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

 Réponse acceptée

jadibad
jadibad le 19 Nov 2022

0 votes

看看帮助就搞的定
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

Plus de réponses (0)

Catégories

En savoir plus sur 编程 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!