迭代到一定次数就出错了
> main
Your initial point x0 is not between bounds lb and ub; FMINCON
shifted x0 to strictly satisfy the bounds.
First-order Norm of
Iter F-count f(x) Feasibility optimality step
0 961 1.267130e+03 9.009e+01 7.078e+00
1 1922 -1.670144e+03 5.877e+01 6.122e+00 1.453e+01
2 2883 -3.105103e+03 4.388e+01 4.320e+00 1.553e+01
3 3844 -3.750186e+03 3.556e+01 3.191e+00 7.916e+00
4 4805 -4.556749e+03 2.447e+01 1.609e+00 1.175e+01
5 5766 -5.073551e+03 1.751e+01 1.198e+00 1.012e+01
6 6727 -5.540497e+03 1.205e+01 1.079e+00 1.164e+01
7 7688 -5.936212e+03 5.631e+00 7.465e-01 7.847e+00
In an assignment A(:) = B, the number of elements in A and B must be the same.
Error in C:\matlab1\toolbox\optim\optim\barrier.p>barrier (line 398)
Error in fmincon (line 900)
[X,FVAL,EXITFLAG,OUTPUT,LAMBDA,GRAD,HESSIAN] = barrier(funfcn,X,A,B,Aeq,Beq,l,u,confcn,options.HessFcn, ...
Error in main (line 13)
[x,fv]=fmincon (@object1,x0,[],[],[],[],v1,v2,@yueshu,options)
那个excel在附件中
第一次求助,感谢各位帮助
2017-3-30 20:01 上传
点击文件名下载附件
22.32 KB, 下载次数: 0