Differential Evolution C++ library
de::mutation_strategy_2 Class Reference

#include <mutation_strategy.hpp>

Inheritance diagram for de::mutation_strategy_2:
Collaboration diagram for de::mutation_strategy_2:

List of all members.

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)

Detailed Description

mutation strategy # 2

Author:
adrian (12/4/2011)

Constructor & Destructor Documentation

de::mutation_strategy_2::mutation_strategy_2 ( size_t  varCount,
const mutation_strategy_arguments args 
) [inline]

constructs a mutation strategy # 2

Author:
adrian (12/4/2011)
Parameters:
varCountnumber of variables
argsmutation strategy arguments

Member Function Documentation

mutation_info de::mutation_strategy_2::operator() ( const population pop,
individual_ptr  bestIt,
size_t  i 
) [inline, virtual]

performs the mutation

Author:
adrian (12/4/2011)
Parameters:
popa reference to the current population
bestItthe best individual of the previous generation
ithe current individual index
Returns:
mutation_info tuple containing the mutated individual and a vector of doubles of the same size as the number of variables, used as origin to generate new values in case they exceed the limits imposed by the corresponding constraints

Implements de::mutation_strategy.

Here is the call graph for this function:


The documentation for this class was generated from the following file: