#include <CMSA.h>

Public Member Functions | |
| CMSASearch () | |
| ~CMSASearch () | |
| CMSA & | getCMSA () |
| const CMSA & | getCMSA () const |
| const PopulationT< double > * | parents () const |
| const PopulationT< double > * | offspring () const |
| void | init (ObjectiveFunctionVS< double > &fitness, unsigned lambda=0, CMSA::RecombType recomb=CMSA::equal) |
| void | init (ObjectiveFunctionVS< double > &fitness, const Array< double > &start, double stepsize, unsigned lambda=0, CMSA::RecombType recomb=CMSA::equal) |
| void | run () |
| main interface: perform one iteration of the search algorithm | |
| void | bestSolutions (std::vector< double * > &points) |
| void | bestSolutionsFitness (Array< double > &fitness) |
| Return a two-dimensional array of fitness values. | |
Protected Attributes | |
| CMSA | m_cma |
| ObjectiveFunctionVS< double > * | m_fitness |
| PopulationT< double > * | m_parents |
| PopulationT< double > * | m_offspring |
Definition at line 112 of file CMSA.h.
| CMSASearch::CMSASearch | ( | ) |
Definition at line 241 of file CMSA.cpp.
References SearchAlgorithmBase::m_name, m_offspring, and m_parents.
| CMSASearch::~CMSASearch | ( | ) |
| void CMSASearch::bestSolutions | ( | std::vector< double * > & | points | ) |
| void CMSASearch::bestSolutionsFitness | ( | Array< double > & | fitness | ) | [virtual] |
Return a two-dimensional array of fitness values.
The first dimension corresponds to the solution, while the second dimension corresponds to the objective.
Implements SearchAlgorithm< T >.
| const CMSA& CMSASearch::getCMSA | ( | ) | const [inline] |
| void CMSASearch::init | ( | ObjectiveFunctionVS< double > & | fitness, | |
| const Array< double > & | start, | |||
| double | stepsize, | |||
| unsigned | lambda = 0, |
|||
| CMSA::RecombType | recomb = CMSA::equal | |||
| ) |
Definition at line 300 of file CMSA.cpp.
References ObjectiveFunctionVS< T >::dimension(), CMSA::init(), m_cma, m_fitness, EvolutionaryAlgorithm< double * >::m_lambda, EvolutionaryAlgorithm< double * >::m_mu, m_offspring, m_parents, Population::setMinimize(), CMSA::suggestLambda(), and CMSA::suggestMu().
| void CMSASearch::init | ( | ObjectiveFunctionVS< double > & | fitness, | |
| unsigned | lambda = 0, |
|||
| CMSA::RecombType | recomb = CMSA::equal | |||
| ) |
Definition at line 256 of file CMSA.cpp.
References ObjectiveFunctionVS< T >::dimension(), CMSA::init(), m_cma, m_fitness, EvolutionaryAlgorithm< double * >::m_lambda, EvolutionaryAlgorithm< double * >::m_mu, m_offspring, m_parents, ObjectiveFunctionVS< T >::ProposeStartingPoint(), Population::setMinimize(), CMSA::suggestLambda(), and CMSA::suggestMu().
| const PopulationT<double>* CMSASearch::offspring | ( | ) | const [inline] |
| const PopulationT<double>* CMSASearch::parents | ( | ) | const [inline] |
| void CMSASearch::run | ( | ) | [virtual] |
main interface: perform one iteration of the search algorithm
Reimplemented from SearchAlgorithm< T >.
Definition at line 329 of file CMSA.cpp.
References ObjectiveFunctionVS< T >::closestFeasible(), CMSA::create(), ObjectiveFunctionVS< T >::isFeasible(), m_cma, m_fitness, m_offspring, m_parents, Population::selectMuLambda(), Population::size(), and CMSA::updateStrategyParameters().
CMSA CMSASearch::m_cma [protected] |
ObjectiveFunctionVS<double>* CMSASearch::m_fitness [protected] |
PopulationT<double>* CMSASearch::m_offspring [protected] |
Definition at line 133 of file CMSA.h.
Referenced by CMSASearch(), init(), offspring(), run(), and ~CMSASearch().
PopulationT<double>* CMSASearch::m_parents [protected] |
Definition at line 132 of file CMSA.h.
Referenced by CMSASearch(), init(), parents(), run(), and ~CMSASearch().