#include <CMA.h>

Public Member Functions | |
| CMASearch () | |
| ~CMASearch () | |
| CMA & | getCMA () |
| const CMA & | getCMA () const |
| const PopulationT< double > * | parents () const |
| const PopulationT< double > * | offspring () const |
| void | init (ObjectiveFunctionVS< double > &fitness, CMA::RecombType recomb=CMA::superlinear, CMA::UpdateType cupdate=CMA::rankmu) |
| void | init (ObjectiveFunctionVS< double > &fitness, const Array< double > &start, double stepsize, CMA::RecombType recomb=CMA::superlinear, CMA::UpdateType cupdate=CMA::rankmu) |
| void | init (ObjectiveFunctionVS< double > &fitness, unsigned int mu, unsigned int lambda, const Array< double > &start, double stepsize, CMA::RecombType recomb=CMA::superlinear, CMA::UpdateType cupdate=CMA::rankmu) |
| 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 | |
| CMA | m_cma |
| ObjectiveFunctionVS< double > * | m_fitness |
| PopulationT< double > * | m_parents |
| PopulationT< double > * | m_offspring |
Definition at line 131 of file CMA.h.
| CMASearch::CMASearch | ( | ) |
Definition at line 287 of file CMA.cpp.
References SearchAlgorithmBase::m_name, m_offspring, and m_parents.
| CMASearch::~CMASearch | ( | ) |
| void CMASearch::bestSolutions | ( | std::vector< double * > & | points | ) |
| void CMASearch::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 CMA& CMASearch::getCMA | ( | ) | const [inline] |
| void CMASearch::init | ( | ObjectiveFunctionVS< double > & | fitness, | |
| unsigned int | mu, | |||
| unsigned int | lambda, | |||
| const Array< double > & | start, | |||
| double | stepsize, | |||
| CMA::RecombType | recomb = CMA::superlinear, |
|||
| CMA::UpdateType | cupdate = CMA::rankmu | |||
| ) |
Definition at line 363 of file CMA.cpp.
References ObjectiveFunctionVS< T >::dimension(), CMA::init(), m_cma, m_fitness, EvolutionaryAlgorithm< double * >::m_lambda, EvolutionaryAlgorithm< double * >::m_mu, m_offspring, m_parents, and Population::setMinimize().
| void CMASearch::init | ( | ObjectiveFunctionVS< double > & | fitness, | |
| const Array< double > & | start, | |||
| double | stepsize, | |||
| CMA::RecombType | recomb = CMA::superlinear, |
|||
| CMA::UpdateType | cupdate = CMA::rankmu | |||
| ) |
Definition at line 341 of file CMA.cpp.
References ObjectiveFunctionVS< T >::dimension(), CMA::init(), m_cma, m_fitness, EvolutionaryAlgorithm< double * >::m_lambda, EvolutionaryAlgorithm< double * >::m_mu, m_offspring, m_parents, Population::setMinimize(), CMA::suggestLambda(), and CMA::suggestMu().
| void CMASearch::init | ( | ObjectiveFunctionVS< double > & | fitness, | |
| CMA::RecombType | recomb = CMA::superlinear, |
|||
| CMA::UpdateType | cupdate = CMA::rankmu | |||
| ) |
Definition at line 302 of file CMA.cpp.
References ObjectiveFunctionVS< T >::dimension(), CMA::init(), m_cma, m_fitness, EvolutionaryAlgorithm< double * >::m_lambda, EvolutionaryAlgorithm< double * >::m_mu, m_offspring, m_parents, ObjectiveFunctionVS< T >::ProposeStartingPoint(), Population::setMinimize(), CMA::suggestLambda(), and CMA::suggestMu().
| const PopulationT<double>* CMASearch::offspring | ( | ) | const [inline] |
| const PopulationT<double>* CMASearch::parents | ( | ) | const [inline] |
| void CMASearch::run | ( | ) | [virtual] |
main interface: perform one iteration of the search algorithm
Reimplemented from SearchAlgorithm< T >.
Definition at line 385 of file CMA.cpp.
References ObjectiveFunctionVS< T >::closestFeasible(), CMA::create(), ObjectiveFunctionVS< T >::isFeasible(), m_cma, m_fitness, m_offspring, m_parents, Population::selectMuLambda(), Population::size(), and CMA::updateStrategyParameters().
CMA CMASearch::m_cma [protected] |
ObjectiveFunctionVS<double>* CMASearch::m_fitness [protected] |
PopulationT<double>* CMASearch::m_offspring [protected] |
Definition at line 153 of file CMA.h.
Referenced by CMASearch(), init(), offspring(), run(), and ~CMASearch().
PopulationT<double>* CMASearch::m_parents [protected] |
Definition at line 152 of file CMA.h.
Referenced by CMASearch(), init(), parents(), run(), and ~CMASearch().