ga question_error "Could not find a feasible initial point"
1 回表示 (過去 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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!