In file EO++.h:

template <class EOT> class EOSimAnnAlg : public EOAlgo<EOT>

Implementation of a Simulated annealing algorithm using EO

Inheritance:


Public Methods

virtual void operator ()( EOPop<EOT>& _pop )
Run the algorithm
EOSimAnnAlg( EOEvalFunc<EOT>& _evalFunc, MonOp<EOT>& _op, unsigned _numChanges, float _initTemp, float _minTemp, EOSimAnnFreezer& _freezer, bool _verbose = false )
Constructs the algorithm
virtual void evalFunc( const EOEvalFunc<EOT>& _evalFunc )
Sets the Evaluation Function
virtual const EOEvalFunc <EOT> & evalFunc( void )
Returns the Evaluation Function
virtual const EOSimAnnFreezer& freezer( void )
Returns the freezer
virtual void freezer( EOSimAnnFreezer& _freezer )
Sets the freezer
virtual float initTemp( void )
Returns the initial temperature
virtual void initTemp( float _initTemp )
Sets the initial temperature
virtual void minTemp( float _minTemp )
Sets the minimun temperature
virtual float minTemp( void )
Returns the minimun temperature allowed
virtual unsigned numChanges( void )
Returns the number of random changes to be made in a temperature
virtual void numChanges( unsigned _numChanges )
Sets the number of random changes to be made in a temperature
virtual void op( const MonOp<EOT>& _op )
Sets the operator to generate elements in the neighbourhood of the current one
virtual const MonOp <EOT> & op( void )
Returns the operator to generate elements in the neighbourhood of the current one
virtual ~EOSimAnnAlg()
Destructor must be virtual

Inherited from EOAlgo:

Public Methods

virtual void operator) ( EOPop<EOT>& _pop )

Documentation

Implementation of a Simulated annealing algorithm using EO
EOSimAnnAlg( EOEvalFunc<EOT>& _evalFunc, MonOp<EOT>& _op, unsigned _numChanges, float _initTemp, float _minTemp, EOSimAnnFreezer& _freezer, bool _verbose = false )
Constructs the algorithm
Parameters:
_evalFunc - Evaluation function to be minimized during the simulated annealing process
_op - Makes changes in the configuration to get elements in the neighbourhood of the current one
_numChanges - Number of random changes allowed a a temperature
_initTemp - Initial temperature
_minTemp - Minimal temperature allowed
_freezer - Freezes the temperature
_verbose - If true sets verbose mode on

virtual ~EOSimAnnAlg()
Destructor must be virtual

virtual void evalFunc( const EOEvalFunc<EOT>& _evalFunc )
Sets the Evaluation Function
Parameters:
_evalFunc - Evaluation to be minimized

virtual void op( const MonOp<EOT>& _op )
Sets the operator to generate elements in the neighbourhood of the current one
Parameters:
_op - The operator

virtual void numChanges( unsigned _numChanges )
Sets the number of random changes to be made in a temperature
Parameters:
_numChanges - The number of changes

virtual void initTemp( float _initTemp )
Sets the initial temperature
Parameters:
_initTemp - Initial temperature

virtual void minTemp( float _minTemp )
Sets the minimun temperature
Parameters:
_minTemp - Minimun temperature

virtual void freezer( EOSimAnnFreezer& _freezer )
Sets the freezer
Parameters:
_freezer -

virtual const EOEvalFunc <EOT> & evalFunc( void )
Returns the Evaluation Function

virtual const MonOp <EOT> & op( void )
Returns the operator to generate elements in the neighbourhood of the current one

virtual unsigned numChanges( void )
Returns the number of random changes to be made in a temperature

virtual float initTemp( void )
Returns the initial temperature

virtual float minTemp( void )
Returns the minimun temperature allowed

virtual const EOSimAnnFreezer& freezer( void )
Returns the freezer

virtual void operator ()( EOPop<EOT>& _pop )
Run the algorithm. Applies the simulated Annealing process to each element of the population separately.
Parameters:
_pop - Population


This class has no child classes.

alphabetic index hierarchy of classes


BinOp