ECF 1.5
Public Member Functions | Protected Attributes | List of all members
SelectionOperator Class Referenceabstract

Selection operator base class. More...

#include <SelectionOperator.h>

Inheritance diagram for SelectionOperator:
SelBestOp SelFitnessProportionalOp SelRandomOp SelWorstOp

Public Member Functions

virtual bool initialize (StateP)=0
 Selection operator initialization. Must be called before individual selection. More...
 
virtual IndividualP select (const std::vector< IndividualP > &)=0
 Select one individual from a set. More...
 

Protected Attributes

StateP state_
 

Detailed Description

Selection operator base class.

All selection operators select one individual from a set, using different methods.

Definition at line 18 of file SelectionOperator.h.

Constructor & Destructor Documentation

◆ ~SelectionOperator()

virtual SelectionOperator::~SelectionOperator ( )
inlinevirtual

Definition at line 23 of file SelectionOperator.h.

Member Function Documentation

◆ initialize()

virtual bool SelectionOperator::initialize ( StateP  )
pure virtual

Selection operator initialization. Must be called before individual selection.

Implemented in SelBestOp, SelFitnessProportionalOp, SelRandomOp, and SelWorstOp.

◆ select()

virtual IndividualP SelectionOperator::select ( const std::vector< IndividualP > &  )
pure virtual

Select one individual from a set.

Implemented in SelBestOp, SelFitnessProportionalOp, SelRandomOp, and SelWorstOp.

Member Data Documentation

◆ state_

StateP SelectionOperator::state_
protected

Definition at line 21 of file SelectionOperator.h.


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