GERARDIUM RUSH - MINERAL CIRCUIT OPTIMIZER v1.0.0
"A powerful tool designed to optimize circuit configurations using advanced genetic algorithms." - by Pentlandite
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
Algorithm_Parameters Struct Reference

Configures the parameters of a genetic algorithm. More...

#include <Parameter.h>

Collaboration diagram for Algorithm_Parameters:
Collaboration graph

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Algorithm_Parameters()

Algorithm_Parameters::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 )
inline

Constructor to initialize the parameters with custom values.

Parameters
gensMaximum number of generations.
popSizeSize of the population.
tourSizeNumber of individuals to select in each tournament.
crossRateRate at which crossover occurs.
mutRateRate at which mutation occurs.
elitePercPercentage of elite individuals to keep in the next generation.
seedRandom seed, 0 means using current time.

Field Documentation

◆ crossover

std::string Algorithm_Parameters::crossover = "TwoPointCrossover"

Crossover method

◆ crossoverRate

double Algorithm_Parameters::crossoverRate = 0.8

Rate at which crossover occurs

◆ deltT

double Algorithm_Parameters::deltT = 1.0

The temperature decrement of Simulated Annealing algorithm

◆ elitePercentage

double Algorithm_Parameters::elitePercentage = 0.2

Percentage of elite individuals to keep in the next generation

◆ initialTemp

double Algorithm_Parameters::initialTemp = 1000.0

Initial temperature of Simulated Annealing algorithm

◆ maxGenerations

int Algorithm_Parameters::maxGenerations = 1000

Maximum number of generations

◆ mutation

std::string Algorithm_Parameters::mutation = "GuidedMutation"

Mutation method

◆ mutationRate

double Algorithm_Parameters::mutationRate = 0.1

Rate at which mutation occurs

◆ populationSize

int Algorithm_Parameters::populationSize = 100

Size of the population

◆ randomSeed

unsigned int Algorithm_Parameters::randomSeed = 0

Random seed, 0 means using current time

◆ selection

std::string Algorithm_Parameters::selection = "NaryTournamentSelection"

Selection method

◆ tournamentSize

int Algorithm_Parameters::tournamentSize = 3

Number of individuals to select in each tournament


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