class ProduceOperatorA

The production operator

Public Methods

virtual ArrayC <GenotypeA*> * operator) ( ArrayC<GenotypeA const *> const & iArray )
Producing offspring
ProduceOperatorA ( ConfigurationA const & iConfiguration, CoreFactoryA const & iCoreFactoryA, ProblemFactoryA const & iProblemFactory, ProblemA const &iProblem, RandomA const & iRandom )
Creating a new production operator

Documentation

This operator should produce new genotypes using the provided existing ones. The existing genotype are not changed. An other way of putting it: Given a number of parents this operator produces a number of children.

ProduceOperatorA( ConfigurationA const & iConfiguration, CoreFactoryA const & iCoreFactoryA, ProblemFactoryA const & iProblemFactory, ProblemA const &iProblem, RandomA const & iRandom )
This constructor should only be called by its children. It copies the reference of the parameters into protected members, they can then be used by its children to spawn objects and read configuration parameters.

Returns:
Nothing.
Parameters:
iConfiguration - The configuration used to determine settings for the algorithm and to provide a configuration to spawned objects within this class.
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.
iRandom - The production operator will require some random numbers.
Author:
J.I. van Hemert
Version:
0.1

virtual ArrayC <GenotypeA*> * operator) ( ArrayC<GenotypeA const *> const & iArray )
ArrayC<GenotypeA const *>* Parents;
ArrayC<GenotypeA*>* Children;
// Select parents and store them in the Parents list
Children = ProduceOperator(*Parents);
This is the only function of the production operator. It returns a number of newly generated children using the provided list of existing ones.

Returns:
Newly generated genotypes.
Parameters:
iArray - This is a list of parent genotypes.
Author:
J.I. van Hemert
Version:
0.1


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