A Genetic Programming Framework for .NET

EngineOptions.TestLimit Property

Gets or sets the test limit.

public int TestLimit {get; set;}

Property Value

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.

Remarks

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.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException Thrown when value is less than or equal to zero.

See Also

EngineOptions Class | GeneticProgrammingEngine.Internal Namespace | Tester Class | TestLimit Property | test Term