class ExperimentA

Managing experiments

Public Methods

ExperimentA ( ConfigurationA const & iConfiguration, StatisticsA & iStatistics, CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ReproductionFactoryA const & iReproductionFactory, RandomA & iRandom )
Declaring a new Experiment
virtual void Run ()
Declaring a new Experiment

Protected Methods

static void OutOfMemory ()
Handler for when the program runs out of memory. For now it only prints a message and exits.

Documentation

The experiment will runs the appropriate tests on different parameter settings for the problem and/or evolutionary algorithm. After running a test it saves the gathered information contained in then statistics class to a file.

ExperimentA( ConfigurationA const & iConfiguration, StatisticsA & iStatistics, CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ReproductionFactoryA const & iReproductionFactory, RandomA & iRandom )
Example:
ExperimentA * Experiment = new ExperimentC(Configuration, Statistics, CoreFactory, ProblemFactory, ReproductionFactory, Random);

Returns:
Nothing.
Parameters:
iConfiguration - The configuration is used to determine settings for the algorithm and to provide a configuration to spawned objects within this class.
iStatistics - The statistics are used to write data to and build a report after a run of the evolutionary algorithm.
iCoreFactory - The factory that is used to spawn objects from classes of the Core package, within this class. It is passed on to these spawned objects as well.
iProblemFactory - The factory that is used to spawn objects from classes of the Problem package, within this class. It is passed on to these spawned objects as well.
iReproductionFactory - The factory that is used to spawn objects from classes of the Reproduction package, within this class. It is passed on to these spawned objects as well.
iRandom - This randomgenerator is given a seed and then passed on to underlying objects to serve as a source for random numbers.
Author:
J.I. van Hemert
Version:
0.1

virtual void Run()
Example:
ExperimentA * Experiment = new ExperimentC(Configuration, Statistics, CoreFactory, ProblemFactory, ReproductionFactory, Random);
...
Experiment->Run();
This function should be implemented by the class inheriting from this one. It runs an experiment and collects statistical information. The experiment will consist of a problem and an evolutionary algorithm that tries to solve it. Here things as different parameter settings and multiple runs will be implemented.

Returns:
Nothing.
Author:
J.I. van Hemert
Version:
0.1

static void OutOfMemory()
Handler for when the program runs out of memory. For now it only prints a message and exits.


This class has no child classes.
Author:
J.I. van Hemert
Version:
0.1

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de