|
GERARDIUM RUSH - MINERAL CIRCUIT OPTIMIZER v1.0.0
"A powerful tool designed to optimize circuit configurations using advanced genetic algorithms." - by Pentlandite
|
Configures the parameters of a genetic algorithm. More...
#include <Parameter.h>

Public Member Functions | |
| Algorithm_Parameters (int gens, int popSize, std::string selection, int tourSize, std::string crossover, double crossRate, std::string mutation, double mutRate, double elitePerc, double initialTemp, double deltT, double randomSeed) | |
| Constructor to initialize the parameters with custom values. | |
Data Fields | |
| int | maxGenerations = 1000 |
| int | populationSize = 100 |
| std::string | selection = "NaryTournamentSelection" |
| int | tournamentSize = 3 |
| std::string | crossover = "TwoPointCrossover" |
| double | crossoverRate = 0.8 |
| std::string | mutation = "GuidedMutation" |
| double | mutationRate = 0.1 |
| double | elitePercentage = 0.2 |
| double | initialTemp = 1000.0 |
| double | deltT = 1.0 |
| unsigned int | randomSeed = 0 |
Configures the parameters of a genetic algorithm.
The Algorithm_Parameters structure contains various parameters used to configure the behavior of a genetic algorithm, including the number of generations, population size, tournament size, crossover rate, mutation rate, elite percentage, and random seed.
|
inline |
Constructor to initialize the parameters with custom values.
| gens | Maximum number of generations. |
| popSize | Size of the population. |
| tourSize | Number of individuals to select in each tournament. |
| crossRate | Rate at which crossover occurs. |
| mutRate | Rate at which mutation occurs. |
| elitePerc | Percentage of elite individuals to keep in the next generation. |
| seed | Random seed, 0 means using current time. |
| std::string Algorithm_Parameters::crossover = "TwoPointCrossover" |
Crossover method
| double Algorithm_Parameters::crossoverRate = 0.8 |
Rate at which crossover occurs
| double Algorithm_Parameters::deltT = 1.0 |
The temperature decrement of Simulated Annealing algorithm
| double Algorithm_Parameters::elitePercentage = 0.2 |
Percentage of elite individuals to keep in the next generation
| double Algorithm_Parameters::initialTemp = 1000.0 |
Initial temperature of Simulated Annealing algorithm
| int Algorithm_Parameters::maxGenerations = 1000 |
Maximum number of generations
| std::string Algorithm_Parameters::mutation = "GuidedMutation" |
Mutation method
| double Algorithm_Parameters::mutationRate = 0.1 |
Rate at which mutation occurs
| int Algorithm_Parameters::populationSize = 100 |
Size of the population
| unsigned int Algorithm_Parameters::randomSeed = 0 |
Random seed, 0 means using current time
| std::string Algorithm_Parameters::selection = "NaryTournamentSelection" |
Selection method
| int Algorithm_Parameters::tournamentSize = 3 |
Number of individuals to select in each tournament