|
Differential Evolution C++ library
|
#include <selection_strategy.hpp>

Public Member Functions | |
| virtual void | operator() (population_ptr &pop1, population_ptr &pop2, individual_ptr &bestInd, bool minimize)=0 |
Abstract based class defining the interface for a selection strategy.
A selection strategy is used by Differential Evolution to determine what is the best individual
| virtual void de::selection_strategy::operator() | ( | population_ptr & | pop1, |
| population_ptr & | pop2, | ||
| individual_ptr & | bestInd, | ||
| bool | minimize | ||
| ) | [pure virtual] |
applies the selection strategy
| pop1 | old population |
| pop2 | new population |
| bestInd | reference to the best individual - contains the best individual on return |
| minimize | if true, it will minimize, if false it will maximize |
Implemented in de::tournament_selection_strategy, and de::best_parent_child_selection_strategy.