Gets or sets the test limit.
If no limit is desired, first ensure that the FinishedTesting method defined in the IIndividual of the GeneticProgrammingEngine.ProblemSpace problem you are working on will eventually return true. Then set this value to MaxValue. Failure to do so will cause an infinite loop when the first IIndividual is tested.
The default value is 1000.
This property is used to set Tester's TestLimit property. The value is used to limit the number of times that an IIndividual's Test method may be called during a test.
| Exception Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown when value is less than or equal to zero. |
EngineOptions Class | GeneticProgrammingEngine.Internal Namespace | Tester Class | TestLimit Property | test Term