Hide Comments
Hide Comments

Comments (0)

Occurs each time the  Evolve method is called. The OnEvolve event handler is called once at the end of the Evolve method. Use the OnEvolve event handler to take action when the Population evolves.

Namespace: RSGeneticBase

expandingSyntax

Delphi

public
  property OnEvolve: TNotifyEvent read FOnEvolve write FOnEvolve;
 

Property Value

Type: TNotifyEvent

expandingExamples

The following code updates a chart with running information for the genetic algorithm:

Delphi

procedure TForm1.RSGeneticAlgorithm1Evolve(Sender: TObject);
 begin
      // Update the line series chart with the fitness of this generation
      CurrentSeries.Values.Add(RSGeneticAlgorithm1.Generation, RSGeneticAlgorithm1.MaxFitness);
 end;

expandingSee Also

Comments (0)