shark::PolynomialMutator Struct Reference

Polynomial mutation operator. More...

#include <shark/Algorithms/DirectSearch/Operators/Mutation/PolynomialMutation.h>

Public Member Functions

 PolynomialMutator ()
 Default c'tor. More...
 
template<typename Function >
void init (const Function &f)
 Initializes the operator for the supplied fitness function. More...
 
template<typename IndividualType >
void operator() (IndividualType &ind)
 Mutates the supplied individual. More...
 
template<typename Archive >
void serialize (Archive &archive, const unsigned int version)
 Serializes this instance to the supplied archive. More...
 

Public Attributes

double m_nm
 
double m_prob
 
RealVector m_upper
 
RealVector m_lower
 

Detailed Description

Polynomial mutation operator.

Definition at line 42 of file PolynomialMutation.h.

Constructor & Destructor Documentation

shark::PolynomialMutator::PolynomialMutator ( )
inline

Default c'tor.

Definition at line 45 of file PolynomialMutation.h.

Member Function Documentation

template<typename Function >
void shark::PolynomialMutator::init ( const Function &  f)
inline

Initializes the operator for the supplied fitness function.

Parameters
[in]fInstance of the objective function to initialize the operator for.

Definition at line 51 of file PolynomialMutation.h.

References m_lower, m_prob, m_upper, shark::blas::repeat(), and SHARKEXCEPTION.

Referenced by shark::SMSEMOA::init(), and shark::IndicatorBasedRealCodedNSGAII< Indicator >::init().

template<typename IndividualType >
void shark::PolynomialMutator::operator() ( IndividualType ind)
inline

Mutates the supplied individual.

for accessing the actual search point.

Parameters
[in,out]indIndividual to be mutated.

Definition at line 74 of file PolynomialMutation.h.

References m_lower, m_nm, m_prob, m_upper, and shark::Individual< PointType, FitnessTypeT, Chromosome >::searchPoint().

template<typename Archive >
void shark::PolynomialMutator::serialize ( Archive &  archive,
const unsigned int  version 
)
inline

Serializes this instance to the supplied archive.

Parameters
[in,out]archiveThe archive to serialize to.
[in]versionVersion information (optional and not used here).

Definition at line 124 of file PolynomialMutation.h.

References m_lower, m_nm, m_prob, and m_upper.

Member Data Documentation

RealVector shark::PolynomialMutator::m_lower

Definition at line 135 of file PolynomialMutation.h.

Referenced by init(), operator()(), and serialize().

double shark::PolynomialMutator::m_nm
double shark::PolynomialMutator::m_prob

Definition at line 132 of file PolynomialMutation.h.

Referenced by init(), operator()(), and serialize().

RealVector shark::PolynomialMutator::m_upper

Definition at line 134 of file PolynomialMutation.h.

Referenced by init(), operator()(), and serialize().


The documentation for this struct was generated from the following file: