fmincon优化问题求教。

18 visualizaciones (últimos 30 días)
华纳公司开户网址【 558766.com】
fun = @(x)4.0896*x(1)*x(2);
lb=[];
ub=[];
A=[-1 0;0 1;0 -1];
b=[-30;150;-50];
Aeq=[];
beq=[];
x0=[20,50];
[x,fval,exitflag,output]=fmincon(fun,x0,A,b,Aeq,beq,lb,ub,'mycon')
以上是我的代码;
下面的是输出结果,红色部分的错误是什么意思???怎么解决呢??
Local minimum found that satisfies the constraints.
Optimization completed because the objective function is non-decreasing in
feasible directions, to within the default value of the optimality tolerance,
and constraints are satisfied to within the default value of the constraint tolerance.
<stopping criteria details>
x =
30.0000 50.0000
fval =
6.1344e+03
exitflag =
1
output =
包含以下字段的 struct:
iterations: 6
funcCount: 21
constrviolation: 0
stepsize: 4.6603e-08
algorithm: 'interior-point'
firstorderopt: 1.6891e-06
cgiterations: 0
message: 'Local minimum found that satisfies the constr…'

Respuestas (0)

Categorías

Más información sobre 非线性优化 en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!