RealValuedIndividual

Models & Types · AiDotNet.Genetics

Represents an individual encoded with real-valued genes, suitable for numerical optimization problems.

Implements: IEvolvable<RealGene, double>

Known derived types: MultiObjectiveRealIndividual

Constructors

Constructor Summary
RealValuedIndividual(ICollection<RealGene> genes) Creates a real-valued individual with the specified genes.
RealValuedIndividual(int dimensionCount, double minValue, double maxValue, Random random) Creates a new individual with random values within the specified range.

Methods

Method Summary
ICollection<RealGene> GetGenes()
IEvolvable<RealGene, double> Clone()
double GetFitness()
double[] GetValuesAsArray() Gets the values of all genes as an array.
void SetFitness(double fitness)
void SetGenes(ICollection<RealGene> genes)
void UpdateStepSizes(double successRatio) Updates the step sizes according to Evolutionary Strategies 1/5 success rule.