ECF 1.5
SelRandomOp.h
1#ifndef SelRandomOp_h
2#define SelRandomOp_h
3
4#include "SelectionOperator.h"
5
12{
13protected:
14 RandomizerP randomizer_;
15public:
16 bool initialize(StateP);
17 IndividualP select(const std::vector<IndividualP>&);
18};
19typedef boost::shared_ptr<SelRandomOp> SelRandomOpP;
20
21#endif // SelRandomOp_h
22
Random individual selection operator.
Definition: SelRandomOp.h:12
bool initialize(StateP)
Selection operator initialization. Must be called before individual selection.
Definition: SelRandomOp.cpp:5
IndividualP select(const std::vector< IndividualP > &)
Select one individual from a set.
Definition: SelRandomOp.cpp:13
Selection operator base class.