Samchon Framework for CPP
1.0.0
|
A structure containing parameters of genetic algorithm. More...
#include <GAParameters.hpp>
Public Member Functions | |
GAParameters () | |
GAParameters (size_t generation, size_t population, size_t tournament, double mutationRate) | |
void | setGeneration (size_t val) |
void | setPopulation (size_t val) |
void | setTournament (size_t val) |
void | setMutationRate (double val) |
auto | getGeneration () const -> size_t |
auto | getPopulation () const -> size_t |
auto | getTournament () const -> size_t |
auto | getMutationRate () const -> double |
Public Member Functions inherited from samchon::protocol::Entity<> | |
virtual auto | key () const -> std::string |
Get a key that can identify the Entity uniquely. More... | |
Protected Attributes | |
size_t | generation |
A number of generation of evolution. More... | |
size_t | population |
A number of population in a generation. More... | |
size_t | tournament |
A number of tournament in a selection. More... | |
double | mutationRate |
Rate of mutate ocurrence. More... | |
A structure containing parameters of genetic algorithm.
The number and rate parameters in the structure affects success of evolution of genetic algorithm.
Definition at line 19 of file GAParameters.hpp.
|
inline |
Default Constructor.
Definition at line 64 of file GAParameters.hpp.
|
inline |
Construct from members.
Definition at line 72 of file GAParameters.hpp.
References generation, mutationRate, population, and tournament.
|
inline |
Set generation.
Definition at line 95 of file GAParameters.hpp.
|
inline |
Set population.
Definition at line 103 of file GAParameters.hpp.
|
inline |
Set tournament.
Definition at line 111 of file GAParameters.hpp.
|
inline |
Set mutation rate.
Definition at line 119 of file GAParameters.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
A number of generation of evolution.
Definition at line 29 of file GAParameters.hpp.
Referenced by GAParameters(), and getGeneration().
|
protected |
A number of population in a generation.
Definition at line 34 of file GAParameters.hpp.
Referenced by GAParameters(), and getPopulation().
|
protected |
A number of tournament in a selection.
Definition at line 39 of file GAParameters.hpp.
Referenced by GAParameters(), and getTournament().
|
protected |
Rate of mutate ocurrence.
A mutation rate determines the percentage of occurence of mutation in a sequence list.
Definition at line 53 of file GAParameters.hpp.
Referenced by GAParameters(), and getMutationRate().