Differential Evolution C++ library
|
#include <mutation_strategy.hpp>
Public Member Functions | |
mutation_strategy_2 (size_t varCount, const mutation_strategy_arguments &args) | |
mutation_info | operator() (const population &pop, individual_ptr bestIt, size_t i) |
mutation strategy # 2
de::mutation_strategy_2::mutation_strategy_2 | ( | size_t | varCount, |
const mutation_strategy_arguments & | args | ||
) | [inline] |
constructs a mutation strategy # 2
varCount | number of variables |
args | mutation strategy arguments |
mutation_info de::mutation_strategy_2::operator() | ( | const population & | pop, |
individual_ptr | bestIt, | ||
size_t | i | ||
) | [inline, virtual] |
performs the mutation
pop | a reference to the current population |
bestIt | the best individual of the previous generation |
i | the current individual index |
Implements de::mutation_strategy.