x0=[0.854 0.62 0.1];>> x=constr(fun,x0);??? Error: File: fun.m Line: 4 Column: 5Unexpected MATLAB expression.是什么原因M文件是function[f,g]=fun(x)f=18.6997*x(1)+639.8478*x(1)*x(2)*x(3)+29.7925*x(1)*x(2)*x(3);g(1)=3.8-595000/(12060+738285.6*x(2)*x(3)+184571.4*x(2)*x(2));g(2)165-2736*x(1)*x(2)*x(3)-684*x(2)*x(2);g(3)=0.4-x(2);g(4)=x(1)-0.5;g(5)=0.4-x(1);g(6)=x(3)-0.125;g(7)=0.095-x(3);
>> x0=[0.854 0.62 0.1];>> x=constr('fun',x0);还是不行
|