duoduodouniushi 发表于 2012-2-23 20:22

matlab遇到问题 迷茫中。。。求解答

各位前辈大家好,我在求解一规划模型中遇到这样的问题:所赋初值与计算结果一样,并没有达到最优解,显示出Optimization terminated: No feasible solution found.
Search direction less than 2*options.TolX but constraints are not satisfied.
具体的程序如下:
>> x0=;
>>A=[];
>> b=[];
>> Aeq=;
>> beq=;
>> vlb=;
>> vub=;
>> =fmincon('myfun',x0,A,b,Aeq,beq,vlb,vub,'mycon')
Warning: Large-scale (trust region) method does not currently solve this type of problem,
switching to medium-scale (line search).
> In fmincon at 260


其中myfun.M为function f=myfun(x);
f=(x(1)-0.1)^2+(x(2)-0.3)^2+(x(3)-0.15)^2+(x(4)-0.45)^2+(x(1)-0.5)^2+(x(2)-0.24)^2+(x(3)-0.01)^2+(x(4)-0.25)^2+(x(1)-0.1)^2+(x(2)-0.25)^2+(x(3)-0.2)^2+(x(4)-0.45)^2+(x(1)-0.5)^2+(x(2)-0.24)^2+(x(3)-0.01)^2+(x(4)-0.25)^2+(x(1)-0.15)^2+(x(2)-0.2)^2+(x(3)-0.2)^2+(x(4)-0.45)^2
mycon.M为function=mycon(x);
g=[];
ceq=;请大家忙我看一下,万分感谢!
页: [1]
查看完整版本: matlab遇到问题 迷茫中。。。求解答