:four_leaf_clover: Evolutionary optimization library for Go (genetic algorithm, partical swarm optimization, differential evolution)
Population.rng
has been promoted to Population.RNG
. This makes it easier to implement custom models in another package than gago
Enhance
to Evolve
for estheticsThe Genome
's Crossover
method now has to be done in-place. Although this breaks the API it is well worth as it makes it more consistent and requires less boilerplate code for deep copying.
Fixed a bug where the individuals were evaluated twice when ParallelEval
was true
.
The best individuals are now stored in the HallOfFame
field. This is a breaking change because the Best
field does not exists anymore.
Individuals can now be evaluated in parallel thanks to the GA
's ParallelEval
field.
The GA
struct now has an RNG
field of type *rand.Rand
which can be set to make results reproducible.
Remove data race in GA.Initialize
GA.Initialized()
to indicate if a GA
has been initialized or not.String()
functions to Individual
and Individuals
Latest stable release for godep
. Ensuing updates will be available through releases (aka the proper way).