Types
These types define the fundamental building blocks of the genetic algorithm, including abstract types for key evolutionary operations (initialization, selection, crossover, and mutation) and concrete structures for representing chromosomes and populations. Custom operators must inherit from these abstract types to ensure compatibility and proper integration within the algorithm.
GeneticAlgorithms.Chromosome
— TypeChromosome(genes::Vector{T})
A chromosome consists of a vector of genes
of type T
.
GeneticAlgorithms.CrossoverMethod
— TypeCrossoverMethod
Abstract type for crossover methods.
GeneticAlgorithms.MutationMethod
— TypeMutationMethod
Abstract type for mutation methods.
GeneticAlgorithms.Population
— TypePopulation(chromosomes::Vector{T})
A population consists of a vector of chromosomes
of type T
.
GeneticAlgorithms.PopulationInitializationMethod
— TypePopulationInitializationMethod
Abstract type for population initialization methods.
GeneticAlgorithms.SelectionMethod
— TypeSelectionMethod
Abstract type for selection methods.