Hide Comments
Hide Comments

TRSCustomGeneticComponent.OnEvaluateWeightedFitness Event

Comments (0)

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).

alert_cautionImportant 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

expandingSyntax

Delphi

public
  property OnEvaluateWeightedFitness: TRSFitnessEvent read FOnEvaluateWeightedFitness write FOnEvaluateWeightedFitness;
 

Value

Type: TRSFitnessEvent

expandingSee Also

Comments (0)