Compiles and tests a Population.
For a list of all members of this type, see Tester Members.
System.Object
GeneticProgrammingEngine.Internal.Tester
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The Tester is responsible for compiling the code file for a Population, instantiating each IIndividual, and testing them in the given IEnvironments. This is accomplished by the CompileAndTest method. The results of these tests are saved to a new GenerationHistory.
The Tester is instantiated in a separate AppDomain by the GPEngine so that the generated Assembly can be unloaded when testing is finished.
As an added benefit, this design also segregates the relatively complicated code responsible for testing IIndividuals into an entirely separate space from the broader Genetic Programming Algorithm.
The Tester class has static and instance versions of its CompileAndTest method to allow for calls in separate AppDomains. The instance version uses properties set in the constructor of changed afterward to call the static implementation.
Namespace: GeneticProgrammingEngine.Internal
Assembly: GeneticProgrammingEngine (in GeneticProgrammingEngine.dll)
Tester Members | GeneticProgrammingEngine.Internal Namespace | test Term | CompileAndTest Method