GA(1)
GA(1)
AbEC - GA
> [ Home ] > [ Examples ]
[~]$ The algorithm

The Genetic Algorithm (GA) is an optimization technique based on natural selection and biological reproduction. It works in a similar way to natural evolution, where individuals that are more adapted to the environment are selected and have a better chance of passing their genes on to the next generation. In the genetic algorithm, a population of candidate solutions is created and evolved through selection, crossover and mutation operations. The objective is to find the most adapted solution to a given problem, through a systematic and efficient search for better solutions.

If you want to know more about it, please come here. Below the configuration files to run the GA using the framework.

[~]$ Configuration files

> algoConfig.ini

> [ file ]

{
"__COMMENT__": "BASIC CONFIGURATION",
"ALGORITHM": "GA", -> Configure the name
"POPSIZE": 50,-> Set the population size
"MIN_POS": 0,-> Set the min value in the search space
"MAX_POS": 100,-> Set the max value in the search space
"__COMMENT__": "OPTIMIZER CONFIGURATION",
"GA_POP_PERC": 1, -> Set the whole population to perform GA
"GA_ELI_PERC": 0.2, -> Elitism in 20% of the population
"GA_CROSS_PERC": 1, -> Set the whole population to participate in the crossover
"GA_MUT_PERC": 0.1, -> Set the probability of 0.1 of a mutation occur
"GA_MUT_STD": 1, -> Set the standard deviation of the distribution of the mutation in 1
"GA_ENCODER": 0, -> Not using encoder
"GA_INDSIZE": 16,
"PSO_POP_PERC": 0,
"PSO_PHI1": 2.05,
"PSO_PHI2": 2.05,
"PSO_W": 0.729,
"PSO_MIN_VEL": -100,
"PSO_MAX_VEL": 100,
"DE_POP_PERC": 0,
"DE_F": 0.5,
"DE_CR": 0.7,
"ES_POP_PERC": 0,
"ES_RCLOUD": 0.2,
"__COMMENT__": "COMPONENTS CONFIGURATION",
"COMP_CHANGE_DETECT": 0,
"COMP_CHANGE_DETECT_MODE": 0,
"COMP_MULTIPOP": 0,
"COMP_MULTIPOP_N": 10,
"COMP_MUT": 0,
"COMP_MUT_PERC": 0.05,
"COMP_MUT_ELI": 0.5,
"COMP_MUT_STD": 0.1,
"COMP_EXCLUSION": 0,
"COMP_EXCLUSION_REXCL": 22.9,
"COMP_ANTI_CONVERGENCE": 0,
"COMP_ANTI_CONVERGENCE_RCONV": 39.7,
"COMP_LOCAL_SEARCH": 0,
"COMP_LOCAL_SEARCH_ETRY": 20,
"COMP_LOCAL_SEARCH_RLS": 1
}

Be free to use this framework.
AbEC © 2023.