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 |
Polynomial mutation operator.
Definition at line 42 of file PolynomialMutation.h.
|
inline |
Default c'tor.
Definition at line 45 of file PolynomialMutation.h.
|
inline |
Initializes the operator for the supplied fitness function.
[in] | f | Instance 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().
|
inline |
Mutates the supplied individual.
for accessing the actual search point.
[in,out] | ind | Individual 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().
|
inline |
RealVector shark::PolynomialMutator::m_lower |
Definition at line 135 of file PolynomialMutation.h.
Referenced by init(), operator()(), and serialize().
double shark::PolynomialMutator::m_nm |
Definition at line 131 of file PolynomialMutation.h.
Referenced by shark::SMSEMOA::nm(), shark::IndicatorBasedRealCodedNSGAII< Indicator >::nm(), operator()(), and serialize().
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().