fmincon优化问题求教。

조회 수: 18 (최근 30일)
华纳公司开户网址【 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…'

답변 (0개)

카테고리

Help CenterFile Exchange에서 非线性优化에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!