#include <shark/Algorithms/DirectSearch/CMA/CMAIndividual.h>
Public Member Functions | |
CMAIndividual () | |
Default constructor that initializes the individual's attributes to default values. More... | |
CMAIndividual (std::size_t searchSpaceDimension, double successThreshold=0.44, double initialStepSize=1.0) | |
void | updateAsParent (CMAChromosome::IndividualSuccess offspringSuccess) |
void | updateAsOffspring () |
template<class randomType > | |
void | mutate (randomType &rng) |
double & | noSuccessfulOffspring () |
double | noSuccessfulOffspring () const |
std::size_t | parent () const |
std::size_t & | parent () |
Public Member Functions inherited from shark::Individual< RealVector, FitnessType, CMAChromosome > | |
Individual () | |
Default constructor that initializes the individual's attributes to default values. More... | |
SearchPointType & | searchPoint () |
Returns a reference to the search point that is associated with the individual. More... | |
SearchPointType const & | searchPoint () const |
Returns a const reference to the search point that is associated with the individual. More... | |
CMAChromosome & | chromosome () |
Returns a reference to the chromosome that is associated with the individual. More... | |
CMAChromosome const & | chromosome () const |
Returns a const reference to the chromosome that is associated with the individual. More... | |
FitnessType & | unpenalizedFitness () |
Returns a reference to the unpenalized fitness of the individual. More... | |
FitnessType const & | unpenalizedFitness () const |
Returns the unpenalized fitness of the individual. More... | |
FitnessType & | penalizedFitness () |
Returns a reference to the penalized fitness of the individual. More... | |
FitnessType const & | penalizedFitness () const |
Returns the unpenalized fitness of the individual. More... | |
unsigned int | rank () const |
Returns the level of non-dominance of the individual. More... | |
unsigned int & | rank () |
Returns a reference to the level of non-dominance of the individual. Allows for lvalue()-semantic. More... | |
bool | selected () const |
Returns true if the individual is selected for the next parent generation. More... | |
bool & | selected () |
Returns true if the individual is selected for the next parent generation. More... | |
void | serialize (Archive &archive, const unsigned int version) |
Stores the individual and all of its chromosomes in an archive. More... | |
Additional Inherited Members | |
Public Types inherited from shark::Individual< RealVector, FitnessType, CMAChromosome > | |
typedef FitnessType | FitnessType |
typedef RealVector | SearchPointType |
Protected Attributes inherited from shark::Individual< RealVector, FitnessType, CMAChromosome > | |
SearchPointType | m_searchPoint |
The search point associated with the individual. More... | |
CMAChromosome | m_chromosome |
The search point associated with the individual. More... | |
unsigned int | m_rank |
The level of non-dominance of the individual. The lower the better. More... | |
bool | m_selected |
Is the individual selected for the next parent set? More... | |
FitnessType | m_penalizedFitness |
Penalized fitness of the individual. More... | |
FitnessType | m_unpenalizedFitness |
Unpenalized fitness of the individual. More... | |
Definition at line 44 of file CMAIndividual.h.
|
inline |
Default constructor that initializes the individual's attributes to default values.
Definition at line 51 of file CMAIndividual.h.
|
inline |
Definition at line 52 of file CMAIndividual.h.
|
inline |
Definition at line 68 of file CMAIndividual.h.
|
inline |
Definition at line 75 of file CMAIndividual.h.
|
inline |
Definition at line 79 of file CMAIndividual.h.
|
inline |
Definition at line 83 of file CMAIndividual.h.
Referenced by shark::IndicatorBasedSteadyStateMOCMA< Indicator >::updatePopulation().
|
inline |
Definition at line 86 of file CMAIndividual.h.
|
inline |
Definition at line 64 of file CMAIndividual.h.
Referenced by shark::IndicatorBasedSteadyStateMOCMA< Indicator >::updatePopulation().
|
inline |
Definition at line 61 of file CMAIndividual.h.
Referenced by shark::IndicatorBasedSteadyStateMOCMA< Indicator >::updatePopulation().