Evolutionary.jl icon indicating copy to clipboard operation
Evolutionary.jl copied to clipboard

Plot Fitness Function for all evaluated points

Open koehlerson opened this issue 5 years ago • 1 comments
trafficstars

Hey there, I'm using Evolutionary, great package, so thanks for developing it. I was wondering if it's possible by a callback or something like that, to save all individuals and their associated fitness function values? Since I'm only solving a 2 dimensional Problem and this in fact very often, it would be nice to get an Idea of how multi-modal my function is and thus, I would like to plot the fitness function over the 2D parameter space.

koehlerson avatar Aug 18 '20 10:08 koehlerson

Implement custom trace! method (https://wildart.github.io/Evolutionary.jl/dev/tutorial/#Trace-1). The population parameter is an array of the individuals, and the state should contain their fitness (see the particular algorithm implementation). There exist a test for that functionality, you can use it as an example.

wildart avatar Aug 21 '20 01:08 wildart