Simulated binary crossover operator. More...
#include <shark/Algorithms/DirectSearch/Operators/Recombination/SimulatedBinaryCrossover.h>
Public Member Functions | |
SimulatedBinaryCrossover () | |
template<typename Function > | |
void | init (const Function &f) |
Initializes the operator for the supplied fitness function. More... | |
template<typename IndividualType > | |
void | operator() (IndividualType &i1, IndividualType &i2) |
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 fitness function.
[in] | f | Instance of the objective function to initialize the operator for. |
Definition at line 52 of file SimulatedBinaryCrossover.h.
Referenced by shark::SMSEMOA::init(), and shark::IndicatorBasedRealCodedNSGAII< Indicator >::init().
|
inline |
Mates the supplied individuals.
[in,out] | i1 | Individual to be mated. |
[in,out] | i2 | Individual to be mated. |
Definition at line 75 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 141 of file SimulatedBinaryCrossover.h.
RealVector shark::SimulatedBinaryCrossover< PointType >::m_lower |
Lower bound (box constraint).
Definition at line 152 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 148 of file SimulatedBinaryCrossover.h.
Referenced by shark::SMSEMOA::nc(), shark::IndicatorBasedRealCodedNSGAII< Indicator >::nc(), shark::SimulatedBinaryCrossover< RealVector >::operator()(), and shark::SimulatedBinaryCrossover< RealVector >::serialize().
double shark::SimulatedBinaryCrossover< PointType >::m_prob |
Crossover probability.
Definition at line 149 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 151 of file SimulatedBinaryCrossover.h.
Referenced by shark::SimulatedBinaryCrossover< RealVector >::init(), shark::SimulatedBinaryCrossover< RealVector >::operator()(), and shark::SimulatedBinaryCrossover< RealVector >::serialize().