Find values for best and mean fitness value for each generation in Genetic Algorithm
21 views (last 30 days)
After running GA, using Optimization toolbox and code below, the following mean and best fitness value graph was obtained.
[x,fval,exitflag,output,population,score] = ...
How to get the value of best fitness at each generation ?.. I wanted to show a comparison of the best fitness v/s generation for different problems on the same graph. Hence I need values to best fitness at each generation.