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


Public Member Functions | |
| void | operator() (population_ptr &pop1, population_ptr &pop2, individual_ptr &bestInd, bool minimize) |
Selection strategy which compares individuals in two generations corresponding to the same index, and uses the best one for the next generation
| void de::tournament_selection_strategy::operator() | ( | population_ptr & | pop1, |
| population_ptr & | pop2, | ||
| individual_ptr & | bestInd, | ||
| bool | minimize | ||
| ) | [inline, 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 |
Implements de::selection_strategy.