ga question_error "Could not find a feasible initial point"
3 次查看(过去 30 天)
显示 更早的评论
I'm coding a small example of a huge problem. I think I did all the steps correctly but I get this error: "Could not find a feasible initial point" I searched and I saw I should check to not have linear constraints, and if the way I'm using ga is correct. I checked both of those things but they seem correct, is there anyone who knows what else should I check? or what else can make the problem? This is a part of my codes:
Aeq=[];
Beq=[];
nonlcon=@nlcon;
UB=[1;1;1;1;1; inf(40,1); 1;1; 1;1;1;1;1;1;1;
inf(40,1); 1;1; 1;1;1;1;1;1;1];%vector with upper bound
LB=zeros(54+49,1);%vector with lower bound
nvars=5+((8*5)+2+7)*2;
IntCon=[1,2,3,4,5, 46,47, 48,49,50,51,52,53,54, 95,96, 97,98,99,100,101,102,103];
x=ga(@obj_function,nvars,A,B,Aeq,Beq,LB,UB,nonlcon,IntCon);
7 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!