Occurs when the genetic component needs to evaluate weighted fitness for an individual.
Weighted Fitness allows weighting the fitness for searching the solution space to guide the search. Fitness still evaluates if an individual solves the problem, but the weighted fitness can help constrain the search. For example, genetic programs can weight the fitness by reducing the fitness by the size of the program (limiting growth).
Important Note |
---|
Do not repeat your RSGeneticBase.TRSCustomGeneticComponent.OnEvaluateFitness event code here (this is just wasteful) Rather, weight the Individual.Fitness by some function. |
Namespace: RSGeneticBase
Delphi |
public |
Value
Type: TRSFitnessEvent
Reference |