马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
matlab的高手前辈们,你们好! 菜鸟向你请教以下的一个问题!望加以指教,在下感激不尽!
为什么我输入下面的matlab语言,结果却是以下(没有显示变量x的值和最终的目标函数值,以及output的结果都没有)
>> A=[1,-1,0;0,-1,1;-1,1/3,0;0,1/3,-1];
b=[0,0,0,0,]';
lb=[70,150,70]';
x0=[75,250,73]';
options=optimset('largescale','off','display','iter');
options=optimset(options,'tolx',1e-4);
options=optimset(options,'tolfun',1e-8);
options=optimset(options,'maxiter',200);
[x,fval,exitflag,output]=fmincon(@myfun1_1,x0,A,b,[],[],lb,[],@mycon1_1,options);
max Directional First-order
Iter F-count f(x) constraint Step-size derivative optimality Procedure
0 4 414.607 28.68 Infeasible start point
1 9 399.808 6.381 1 0.337 1.07e+003
2 14 390.059 0.3112 1 -9.32 4.82 Hessian modified twice
3 19 389.05 7.802e-005 1 -1.01 2.05 Hessian modified
4 24 385.314 0.04363 1 -3.69 1
5 29 380.959 0.6777 1 -2.96 1.07
6 35 373.971 2.942 0.5 -2.41 10.4 Hessian modified
7 40 360.8 1.841 1 -8.86 1.88
8 45 357.253 0.01227 1 -3.52 1.8
9 50 357.23 5.617e-007 1 -0.0238 1.8
10 55 357.23 5.684e-014 1 -1.09e-006 1.8 Hessian modified
Optimization terminated successfully:
First-order optimality measure less than options.TolFun and
maximum constraint violation is less than options.TolCon
Active inequalities (to within options.TolCon = 1e-006):
lower upper ineqlin ineqnonlin
2 4
>>
欢迎高手们前来指点迷津!谢谢! |