|
Differential Evolution C++ library
|
#include <mutation_strategy.hpp>
Public Member Functions | |
| mutation_strategy_arguments (double weight, double crossover) | |
| double | weight () const |
| double | crossover () const |
| double | dither () const |
Parameters used by mutation strategies weight factor, crossover factor and dither factor which is calculated from the previous two
| de::mutation_strategy_arguments::mutation_strategy_arguments | ( | double | weight, |
| double | crossover | ||
| ) | [inline] |
constructs a mutation_strategy_arguments object.
Besides the weight and crossover factors, which are supplied by the calling code, this object holds a dither factor, which is calculated upon construction, and is used by some mutation strtegies.
| weight | weight factor which is a double between 0-2 as defined by the differential evolution algorithm |
| crossover | crossover factor which is a double between 0-1 as defined by the differential evolution algorithm |
| double de::mutation_strategy_arguments::crossover | ( | ) | const [inline] |
returns the crossover factor

| double de::mutation_strategy_arguments::dither | ( | ) | const [inline] |
returns the dither factor

| double de::mutation_strategy_arguments::weight | ( | ) | const [inline] |
returns the weight factor
