GeneticAlgorithmOptimizerOptions<T, TInput, TOutput>
Options & Configuration · AiDotNet.Models.Options
Configuration options for genetic algorithm optimization, which uses principles inspired by natural selection to find optimal solutions to complex problems.
Inheritance: ModelOptions → OptimizationAlgorithmOptions<T, TInput, TOutput> → GeneticAlgorithmOptimizerOptions<T, TInput, TOutput>
Known derived types: CMAESOptimizerOptions<T, TInput, TOutput>, DifferentialEvolutionOptions<T, TInput, TOutput>, TabuSearchOptions<T, TInput, TOutput>
For Beginners
A genetic algorithm works like breeding animals or plants to get desired traits. You start with a diverse group of potential solutions (the “population”), evaluate how good each one is, let the best ones “reproduce” by combining their characteristics, occasionally introduce random changes (“mutations”), and repeat this process over multiple “generations” until you find an excellent solution. It’s a way to solve problems by mimicking how nature evolves species over time.
How It Works
Genetic algorithms simulate the process of natural selection where the fittest individuals are selected for reproduction to produce offspring for the next generation. This approach is particularly effective for optimization problems with large search spaces or complex constraints.
Constructors
| Constructor | Summary |
|---|---|
GeneticAlgorithmOptimizerOptions() |
Initializes a new instance with the default settings. |
GeneticAlgorithmOptimizerOptions(GeneticAlgorithmOptimizerOptions<T, TInput, TOutput> other) |
Initializes a new instance as a copy of other, with every setting copied. |
Properties
| Property | Summary |
|---|---|
double CrossoverRate { get; set; } |
Gets or sets the rate at which solutions are combined to create new ones in genetic algorithms. |
double CrossoverRateDecay { get; set; } |
Gets or sets the factor by which the crossover rate decreases when progress stalls or reverses. |
double CrossoverRateIncrease { get; set; } |
Gets or sets the factor by which the crossover rate increases when progress is being made. |
double MaxCrossoverRate { get; set; } |
Gets or sets the maximum allowed crossover rate for genetic algorithms. |
double MaxMutationRate { get; set; } |
Gets or sets the maximum allowed mutation rate for genetic algorithms. |
double MinCrossoverRate { get; set; } |
Gets or sets the minimum allowed crossover rate for genetic algorithms. |
double MinMutationRate { get; set; } |
Gets or sets the minimum allowed mutation rate for genetic algorithms. |
double MutationRate { get; set; } |
Gets or sets the mutation rate for genetic and evolutionary algorithms. |
double MutationRateDecay { get; set; } |
Gets or sets the factor by which the mutation rate decreases when progress is being made. |
double MutationRateIncrease { get; set; } |
Gets or sets the factor by which the mutation rate increases when progress stalls or reverses. |
int MaxGenerations { get; set; } |
Gets or sets the maximum number of generations (iterations) the genetic algorithm will run. |
int MaxPopulationSize { get; set; } |
Gets or sets the maximum allowed population size for genetic algorithms. |
int MinPopulationSize { get; set; } |
Gets or sets the minimum allowed population size for genetic algorithms. |
int PopulationSize { get; set; } |
Gets or sets the size of the population for genetic and evolutionary algorithms. |