GeneticParameters

Models & Types · AiDotNet.Interfaces

Parameters for configuring a genetic algorithm.

Constructors

Constructor Summary
GeneticParameters()

Properties

Property Summary
InitializationMethod InitializationMethod { get; set; } Gets or sets the initialization method to use for creating the initial population.
SelectionMethod SelectionMethod { get; set; } Gets or sets the selection method to use.
TimeSpan MaxTime { get; set; } Gets or sets the maximum time allowed for evolution.
bool UseParallelEvaluation { get; set; } Gets or sets whether to use parallel evaluation of fitness.
double CrossoverRate { get; set; } Gets or sets the probability of crossover occurring.
double ElitismRate { get; set; } Gets or sets the elitism rate (percentage of top individuals to preserve unchanged).
double FitnessThreshold { get; set; } Gets or sets the fitness threshold for termination.
double MutationRate { get; set; } Gets or sets the probability of mutation occurring.
int MaxGenerations { get; set; } Gets or sets the maximum number of generations to evolve.
int MaxGenerationsWithoutImprovement { get; set; } Gets or sets the maximum number of generations without improvement before termination.
int PopulationSize { get; set; } Gets or sets the size of the population.
int TournamentSize { get; set; } Gets or sets the tournament size for tournament selection.
string CrossoverOperator { get; set; } Gets or sets the name of the crossover operator to use.
string MutationOperator { get; set; } Gets or sets the name of the mutation operator to use.