MATLAB Answers

How to plot the best individual in GA

1 view (last 30 days)
Benmoussa selma
Benmoussa selma on 26 Jan 2020
Commented: Benmoussa selma on 3 Feb 2020
Hi I am doing an optimization with the generic algorithm. I would like to ask how to plot the best individual .when I use in options (best indiv) it displays the values of 3 parameters (sigma=x(1);
Ec=x(2);mur=x(3) ) in the command window but in the plotting it displays just one parameter(sigma=x(1) ).in the bellow code
Anyone has a clue what is the problem? please help me.


Sign in to comment.

Answers (1)

Alan Weiss
Alan Weiss on 29 Jan 2020
I am not sure, but it could be that the disparity in the sizes of your components is to blame. I suggest that you scale the first component sigma by a factor of 1e-6 so that it goes from 1 to 6, and the second component Ec by a factor of 1e3 so that it goes from 1 to 3, and the third component mur by a factor of 1/10 so that it goes from 1 to 4. Then I expect that you will see more reasonable plots.
Alan Weiss
MATLAB mathematical toolbox documentation

  1 Comment

Sign in to comment.

Sign in to answer this question.


Translated by