EvolvingObjects
eoEvalFuncCounterBounder< EOT > Class Template Reference

Counts the number of evaluations actually performed and throw an eoEvalFuncCounterBounderException when the maximum number of allowed evaluations is reached. More...

#include <eoEvalFuncCounterBounder.h>

Inheritance diagram for eoEvalFuncCounterBounder< EOT >:
eoEvalFuncCounter< EOT > eoEvalFunc< EOT > eoValueParam< unsigned long > eoUF< EOT &, void > eoParam eoFunctorBase unary_function

List of all members.

Public Member Functions

 eoEvalFuncCounterBounder (eoEvalFunc< EOT > &func, unsigned long threshold, std::string name="Eval. ")
virtual void operator() (EOT &eo)
 The pure virtual function that needs to be implemented by the subclass.

Private Attributes

unsigned long _threshold

Detailed Description

template<typename EOT>
class eoEvalFuncCounterBounder< EOT >

Counts the number of evaluations actually performed and throw an eoEvalFuncCounterBounderException when the maximum number of allowed evaluations is reached.

This eval counter permits to stop a search during a generation, without waiting for a continue to be checked at the end of the loop. Useful if you have 10 individuals and 10 generations, but want to stop after 95 evaluations.

Definition at line 38 of file eoEvalFuncCounterBounder.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends