ga question_error "Could not find a feasible initial point"

2 visualizaciones (últimos 30 días)
Azam Boskabadi
Azam Boskabadi el 11 de Sept. de 2018
Comentada: Azam Boskabadi el 12 de Sept. de 2018
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 comentarios
Stephan
Stephan el 12 de Sept. de 2018
Thanks for the clarification Walter.
Azam Boskabadi
Azam Boskabadi el 12 de Sept. de 2018
Thank you so much for your comments!!!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by