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


Classes | |
| class | individual_compare |
Public Member Functions | |
| void | operator() (population_ptr &pop1, population_ptr &pop2, individual_ptr &bestInd, bool minimize) |
Selection strategy that sorts all individuals across two generations based on the cost for each individual, and on the desired outcome - minimization or maximization of the objective function
| void de::best_parent_child_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.