Simulated binary crossover operator. More...
#include <shark/Algorithms/DirectSearch/Operators/Recombination/SimulatedBinaryCrossover.h>
Public Member Functions | |
SimulatedBinaryCrossover () | |
void | init (RealVector const &lower, RealVector const &upper) |
Initializes the operator for the supplied box-constraints. More... | |
template<class randomType , typename IndividualType > | |
void | operator() (randomType &rng, IndividualType &i1, IndividualType &i2) const |
Mates the supplied individuals. More... | |
template<typename Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Serializes this instance to the supplied archive. More... | |
Public Attributes | |
double | m_nc |
Parameter nc. More... | |
double | m_prob |
Crossover probability. More... | |
RealVector | m_upper |
Upper bound (box constraint). More... | |
RealVector | m_lower |
Lower bound (box constraint). More... | |
Simulated binary crossover operator.
Definition at line 42 of file SimulatedBinaryCrossover.h.
|
inline |
Definition at line 44 of file SimulatedBinaryCrossover.h.
|
inline |
Initializes the operator for the supplied box-constraints.
Definition at line 49 of file SimulatedBinaryCrossover.h.
Referenced by shark::SMSEMOA::doInit(), and shark::IndicatorBasedRealCodedNSGAII< NSGA3Indicator >::doInit().
|
inline |
Mates the supplied individuals.
[in,out] | i1 | Individual to be mated. |
[in,out] | i2 | Individual to be mated. |
Definition at line 61 of file SimulatedBinaryCrossover.h.
|
inline |
Serializes this instance to the supplied archive.
Archive | The type of the archive the instance shall be serialized to. |
[in,out] | archive | The archive to serialize to. |
[in] | version | Version information (optional and not used here). |
Definition at line 125 of file SimulatedBinaryCrossover.h.
RealVector shark::SimulatedBinaryCrossover< PointType >::m_lower |
Lower bound (box constraint).
Definition at line 136 of file SimulatedBinaryCrossover.h.
Referenced by shark::SimulatedBinaryCrossover< RealVector >::init(), shark::SimulatedBinaryCrossover< RealVector >::operator()(), and shark::SimulatedBinaryCrossover< RealVector >::serialize().
double shark::SimulatedBinaryCrossover< PointType >::m_nc |
Parameter nc.
Definition at line 132 of file SimulatedBinaryCrossover.h.
Referenced by shark::SMSEMOA::doInit(), shark::IndicatorBasedRealCodedNSGAII< NSGA3Indicator >::doInit(), shark::MOEAD::nc(), shark::RVEA::nc(), shark::SMSEMOA::nc(), shark::IndicatorBasedRealCodedNSGAII< NSGA3Indicator >::nc(), shark::SimulatedBinaryCrossover< RealVector >::operator()(), shark::SimulatedBinaryCrossover< RealVector >::serialize(), and shark::SMSEMOA::SMSEMOA().
double shark::SimulatedBinaryCrossover< PointType >::m_prob |
Crossover probability.
Definition at line 133 of file SimulatedBinaryCrossover.h.
Referenced by shark::SimulatedBinaryCrossover< RealVector >::init(), shark::SimulatedBinaryCrossover< RealVector >::operator()(), and shark::SimulatedBinaryCrossover< RealVector >::serialize().
RealVector shark::SimulatedBinaryCrossover< PointType >::m_upper |
Upper bound (box constraint).
Definition at line 135 of file SimulatedBinaryCrossover.h.
Referenced by shark::SimulatedBinaryCrossover< RealVector >::init(), shark::SimulatedBinaryCrossover< RealVector >::operator()(), and shark::SimulatedBinaryCrossover< RealVector >::serialize().