EvolvingObjects
|
eoSegmentCrossover --> uniform choice in segment == arithmetical with same value along all coordinates More...
#include <Tutorial/eoRealOp.h>
Public Member Functions | |
eoSegmentCrossover (const double &_alpha=0.0) | |
(Default) Constructor. | |
eoSegmentCrossover (eoRealVectorBounds &_bounds, const double &_alpha=0.0) | |
Constructor with bounds. | |
virtual std::string | className () const |
The class name. | |
bool | operator() (EOT &_eo1, EOT &_eo2) |
segment crossover - modifies both parents | |
Protected Attributes | |
eoRealVectorBounds & | bounds |
double | alpha |
double | range |
eoSegmentCrossover --> uniform choice in segment == arithmetical with same value along all coordinates
Definition at line 253 of file eoRealOp.h.
eoSegmentCrossover< EOT >::eoSegmentCrossover | ( | const double & | _alpha = 0.0 | ) | [inline] |
(Default) Constructor.
The bounds are initialized with the global object that says: no bounds.
_alpha | the amount of exploration OUTSIDE the parents as in BLX-alpha notation (Eshelman and Schaffer) 0 == contractive application Must be positive |
Definition at line 265 of file eoRealOp.h.
eoSegmentCrossover< EOT >::eoSegmentCrossover | ( | eoRealVectorBounds & | _bounds, |
const double & | _alpha = 0.0 |
||
) | [inline] |
Constructor with bounds.
_bounds | an eoRealVectorBounds that contains the bounds |
_alpha | the amount of exploration OUTSIDE the parents as in BLX-alpha notation (Eshelman and Schaffer) 0 == contractive application Must be positive |
Definition at line 276 of file eoRealOp.h.
bool eoSegmentCrossover< EOT >::operator() | ( | EOT & | _eo1, |
EOT & | _eo2 | ||
) | [inline, virtual] |
segment crossover - modifies both parents
_eo1 | The first parent |
_eo2 | The first parent |
Implements eoBF< EOT &, EOT &, bool >.
Definition at line 288 of file eoRealOp.h.
References eoRealBaseVectorBounds::minimum(), and eoRng::uniform().