How to plot the best individual in GA
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Alan Weiss
2020-1-29
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
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!