1#ifndef SelFitnessProportionalOp_h
2#define SelFitnessProportionalOp_h
4#include "SelectionOperator.h"
34 IndividualP
select(
const std::vector<IndividualP>&);
37 std::vector<IndividualP>
selectMany(
const std::vector<IndividualP>&, uint);
43typedef boost::shared_ptr<SelFitnessProportionalOp> SelFitnessProportionalOpP;
Fitness proportional (and inverse proportional) individual selection operator.
IndividualP select(const std::vector< IndividualP > &)
Select one individual from a set.
double selPressure_
the ratio of selection probability of the best and worst individual in the set
bool initialize(StateP)
Selection operator initialization. Must be called before individual selection.
std::vector< IndividualP > selectMany(const std::vector< IndividualP > &, uint)
Repeatedly select from the same pool (duplicates allowed)
bool setSelPressure(double)
Set selection pressure value.
Selection operator base class.