有MATLAB大神吗,我有一个简单问题想问一下
主函数char;%x0=[0.1;0.3;0.1;0.1;1.5;16;0.75];lb=[-0.09;0.13;-0.09;-0.09;1.31;15.81;0.56];ub=[0.29;0.49;0.29;0.29;1.69;16.19;0.94];[x,y]=fmincon(‘fun’,x0,[],[],[],[],lb,ub,options);函数文件function f=fun(x); p=(1-2.62*(1-0.36*(x(4)./x(2)).(-0.56)).1.5.(x(4)./x(2)).1.16)./x(6)./x(7);q=(x(1)./x(5)).*(x(3)./(x(2)-x(1))).0.85; y=174.42q.*p.^0.5; f=abs(y-1.5);为啥运行结果为Optimization stopped because the relative changes in all elements of x are less than options.StepTolerance = 1.000000e-10, and the relative maximum constraint violation, 0.000000e+00, is less than options.ConstraintTolerance = 1.000000e-06. 求大神指教 马上要交作业啦 比较急。。
求大神指教啊
最新推荐文章于 2021-07-19 22:19:59 发布