Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > GeneticAlgorithm > RSGeneticBase > Classes > TRSCustomGeneticComponent > Events

TRSCustomGeneticComponent.OnEvaluateWeightedFitness Event

Scroll Prev Top Next More

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

Value

Type: TRSFitnessEvent

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb