Hi. I m using ga for my problem. But , it gives different results on graphic(PlotFcns',{@gaplotbestf,@gaplotstopping}) and for fval value. I entered all input values in A matrix , and I described ub,lb, function and others as below.
[x,fval,exitflag,output] = ga(@modellp,nvars,A,b,[],[],lb,ub,[ ],intcon ,options);
and my opitons is
options = gaoptimset('PopulationSize',50,'Generations',10000,'EliteCount',3,'TolFun',1e-10,'PlotFcns',{@gaplotbestf,@gaplotstopping} );
I solved same problem with intlinprog , and I took good results. But ga always gives error. What is the problem, could you help me?
1 Comment
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/357138-why-ga-gives-different-results-on-graphic-and-fval-value#comment_1162228
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/357138-why-ga-gives-different-results-on-graphic-and-fval-value#comment_1162228
Sign in to comment.