jdisset / gaga

GAGA is a fast, header only, multi-objective, and distributed evolutionary algorithm library written in modern C++. It is designed to be easily usable with various genotype representations and allows the user to enable or disable several features such as novelty search or speciation. It also produces and exports various customizable statistics.
MIT License
19 stars 4 forks source link

Comment on offspring production #6

Closed guillaumeboehm closed 4 years ago

guillaumeboehm commented 6 years ago

https://github.com/jdisset/gaga/blob/9e0c8e49c057aa3ee4704cfb63955dbd7e648170/gaga.hpp#L686

I'm not very sure, but in this line wouldn't it be safer to set the minimum to 1*nbObjectives ? Even though the nOffspring shouldn't be less than 1 to begin with I guess.

jdisset commented 4 years ago

This is executed for each objective, so you just want at least one offspring per objective. Which means the total will be >= nbObjectives. I believe this is the correct & expected behavior!