Performs a run of the Genetic Programming algorithm or, if a previous run was interrupted, resumes that run.
The basic algorithm performed by the Run method is shown below. Links to the related class and methods involved are included for ease of reference.
CurrentGeneration = 0; CreateRandomPopulation(); EvaluatePopulation(); // Tester while( CurrentGeneration < GenerationLimit ) { ++CurrentGeneration; SelectBreeders(); // selection BreedChildren(); // recombination MutateChildren(); // mutation EvaluatePopulation(); // Tester }
| Exception Type | Condition |
|---|---|
| InvalidOperationException | Thrown when the Run method is called before the ProblemSpaceClasses property is set. |
GPEngine Class | GeneticProgrammingEngine Namespace | run Term | Genetic Programming Term