shark::SimulatedBinaryCrossover< PointType > Struct Template Reference

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...
 

Detailed Description

template<typename PointType>
struct shark::SimulatedBinaryCrossover< PointType >

Simulated binary crossover operator.

Definition at line 42 of file SimulatedBinaryCrossover.h.

Constructor & Destructor Documentation

template<typename PointType>
shark::SimulatedBinaryCrossover< PointType >::SimulatedBinaryCrossover ( )
inline

Definition at line 44 of file SimulatedBinaryCrossover.h.

Member Function Documentation

template<typename PointType>
template<typename Function >
void shark::SimulatedBinaryCrossover< PointType >::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 52 of file SimulatedBinaryCrossover.h.

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

template<typename PointType>
template<typename IndividualType >
void shark::SimulatedBinaryCrossover< PointType >::operator() ( IndividualType i1,
IndividualType i2 
)
inline

Mates the supplied individuals.

Parameters
[in,out]i1Individual to be mated.
[in,out]i2Individual to be mated.

Definition at line 75 of file SimulatedBinaryCrossover.h.

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

Serializes this instance to the supplied archive.

Template Parameters
ArchiveThe type of the archive the instance shall be serialized to.
Parameters
[in,out]archiveThe archive to serialize to.
[in]versionVersion information (optional and not used here).

Definition at line 141 of file SimulatedBinaryCrossover.h.

Member Data Documentation


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