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

Termination operator: terminates when no improvement occurs in best individual for a given number of generations. More...

#include <TermStagnationOp.h>

Inheritance diagram for TermStagnationOp:
Operator

Public Member Functions

void registerParameters (StateP)
 Register parameters with the Registry. Called before Operator::initialize. More...
 
bool initialize (StateP)
 Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used! More...
 
bool operate (StateP)
 perform the designated operation More...
 
- Public Member Functions inherited from Operator
virtual bool operate (StateP)=0
 perform the designated operation More...
 
virtual bool initialize (StateP)
 Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used! More...
 
virtual void registerParameters (StateP)
 Register parameters with the Registry. Called before Operator::initialize. More...
 
virtual void write (XMLNode &)
 Write operator state to XMLNode or the Registry. Called after Operator::initialize. More...
 
virtual void read (XMLNode &)
 Read operator state from XMLNode or the Registry. Called after Operator::initialize. More...
 

Protected Attributes

uint termStagnation_
 

Detailed Description

Termination operator: terminates when no improvement occurs in best individual for a given number of generations.

Definition at line 8 of file TermStagnationOp.h.

Member Function Documentation

◆ initialize()

bool TermStagnationOp::initialize ( StateP  )
virtual

Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used!

Returns
initialization success

Reimplemented from Operator.

Definition at line 14 of file TermStagnationOp.cpp.

◆ operate()

bool TermStagnationOp::operate ( StateP  )
virtual

perform the designated operation

Implements Operator.

Definition at line 37 of file TermStagnationOp.cpp.

◆ registerParameters()

void TermStagnationOp::registerParameters ( StateP  )
virtual

Register parameters with the Registry. Called before Operator::initialize.

Reimplemented from Operator.

Definition at line 6 of file TermStagnationOp.cpp.

Member Data Documentation

◆ termStagnation_

uint TermStagnationOp::termStagnation_
protected

Definition at line 15 of file TermStagnationOp.h.


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