Occurs when the genetic component needs to select parents for Reproduction. The OnSelection event is only called if the SelectionMethod is smCustom. Use the OnSelection event to write your own selection method.
Namespace: RSGeneticBase
Delphi |
public |
Value
Type: TRSSelectionEvent
The following code selects a random parent: Delphi |
procedure TForm1.RSGeneticAlgorithm1Selection(Sender: TObject; |
Reference |