Deterministic Rank Selection. More...

Inheritance diagram for DeterministicRank:

Public Member Functions

 DeterministicRank ()
 Constructor.
 
virtual ~DeterministicRank ()
 Destructor.
 
virtual void configure (ConfigurationParameters &params, QString prefix)
 Configure the object using the ConfigurationParameters specified.
 
virtual void save (ConfigurationParameters &params, QString prefix)
 Save the actual status of parameters into the ConfigurationParameters object passed.
 
virtual const Genotypeselect ()
 Select a Genotype.
 
virtual void setGenome (const Genome *g)
 It initialize DeterministicRank.
 
void setTruncation (int nTruncation)
 Set the truncation parameters.
 
int truncation ()
 Return truncation.
 
- Public Member Functions inherited from Selection
 Selection ()
 Constructor.
 
virtual ~Selection ()
 Destructor.
 
GeneticAlgoGA ()
 Return the GeneticAlgo used.
 
const Genomegenome () const
 Return the Genome on which it selects.
 
void setGA (GeneticAlgo *g)
 Set the GeneticAlgo used.
 
- Public Member Functions inherited from ParameterSettableWithConfigureFunction
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
virtual ParameterSettableUIgetUIManager ()
 
 ParameterSettable ()
 
virtual void postConfigureInitialization ()
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 
- Public Member Functions inherited from ParameterSettable
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 

Static Public Member Functions

static void describe (QString type)
 Add to Factory::typeDescriptions() the descriptions of all parameters and subgroups.
 

Protected Attributes

int idNext
 Id of the Genotype to be returned on next select() calls.
 
int nTruncation
 Truncation; i.e.
 
- Protected Attributes inherited from Selection
GeneticAlgoga
 GeneticAlgo used.
 
const Genomegenomev
 Genome on which it selects Genotypes.
 

Additional Inherited Members

- Public Types inherited from ParameterSettableWithConfigureFunction
enum  Property
 
- Public Attributes inherited from ParameterSettableWithConfigureFunction
 AllowMultiple
 
 Default
 
 IsList
 
 IsMandatory
 
- Static Public Attributes inherited from ParameterSettableWithConfigureFunction
static const double Infinity
 
static const int MaxInteger
 
static const int MinInteger
 
- Protected Member Functions inherited from ParameterSettableWithConfigureFunction
void notifyChangesToParam (QString paramName)
 
- Static Protected Member Functions inherited from ParameterSettableWithConfigureFunction
static Descriptor addTypeDescription (QString type, QString shortHelp, QString longHelp=QString(""))
 
static void setGraphicalEditor (QString type)
 

Detailed Description

Deterministic Rank Selection.

Description
DeterministicRank select Genotypes starting from the first and cycling modulo truncation parameter.
Warnings

Definition at line 37 of file deterministicrank.h.

Constructor & Destructor Documentation

Constructor.

Definition at line 27 of file deterministicrank.cpp.

References DeterministicRank::nTruncation.

~DeterministicRank ( )
virtual

Destructor.

Definition at line 32 of file deterministicrank.cpp.

Member Function Documentation

void configure ( ConfigurationParameters params,
QString  prefix 
)
virtual

Configure the object using the ConfigurationParameters specified.

Parameters
paramsthe object with configuration parameters
prefixthe group in which parameters are expected to be (this is terminated by a separator character). We expect to receive as prefix the group with selection parameters

Implements ParameterSettableWithConfigureFunction.

Definition at line 53 of file deterministicrank.cpp.

References ConfigurationParameters::getValue(), and DeterministicRank::nTruncation.

void describe ( QString  type)
static
void save ( ConfigurationParameters params,
QString  prefix 
)
virtual

Save the actual status of parameters into the ConfigurationParameters object passed.

Parameters
paramsthe configuration parameters object on which save actual parameters
prefixthe prefix to use to access the object configuration parameters.

Implements ParameterSettableWithConfigureFunction.

Definition at line 57 of file deterministicrank.cpp.

References ConfigurationParameters::createParameter(), and DeterministicRank::nTruncation.

const Genotype * select ( )
virtual
void setGenome ( const Genome g)
virtual

It initialize DeterministicRank.

In details, it will sort the Genome and the next select() will return the first (best) Genotype

Reimplemented from Selection.

Definition at line 40 of file deterministicrank.cpp.

References DeterministicRank::idNext, and Selection::setGenome().

void setTruncation ( int  nTruncation)

Set the truncation parameters.

Definition at line 45 of file deterministicrank.cpp.

References DeterministicRank::nTruncation.

int truncation ( )

Return truncation.

Definition at line 49 of file deterministicrank.cpp.

References DeterministicRank::nTruncation.

Member Data Documentation

int idNext
protected

Id of the Genotype to be returned on next select() calls.

Definition at line 74 of file deterministicrank.h.

Referenced by DeterministicRank::select(), and DeterministicRank::setGenome().


The documentation for this class was generated from the following files: