This class stores a single unique copy of each population member that is added to it. More...
|bool||Find (const ttranscribed &popmember, tfitvec &fitness)|
|bool||Insert (const tfitvec &fitness, const ttranscribed &popmember)|
|void||PrintAll (std::ostream &output)|
This class stores a single unique copy of each population member that is added to it.
In order to avoid duplicate output of inversion results at the end of the genetic algorithm run and have a compact history of all models evaluated during the GA run, we have this class that makes sure that we only have a single copy of each population member. This class also stores the associated fitness values, so we can use it to look up the fitness of a member instead of calculating it if the member has already been evaluated before.
|void gplib::UniquePop::PrintAll||(||std::ostream &||output||)|