Differential Evolution C++ library
de::listener Class Reference

#include <listener.hpp>

Inheritance diagram for de::listener:

List of all members.

Public Member Functions

virtual void start ()=0
virtual void end ()=0
virtual void error ()=0
virtual void startGeneration (size_t genCount)=0
virtual void endGeneration (size_t genCount, individual_ptr bestIndGen, individual_ptr bestInd)=0
virtual void startSelection (size_t genCount)=0
virtual void endSelection (size_t genCount)=0
virtual void startProcessors (size_t genCount)=0
virtual void endProcessors (size_t genCount)=0

Detailed Description

Abstract base class for user defined listeners.

A Listener class will receive notifications when certain significan events happen during an optimization session

These events can be used to dispaly the current status, diagnostic information, etc

* The user will derive concrete listener classes from this class, which will do something useful with the received events

Author:
adrian (12/1/2011)

Member Function Documentation

virtual void de::listener::end ( ) [pure virtual]

called at the end of the optimization process

this function is called even if the optimization process ends with an exception

Author:
adrian (12/4/2011)

Implemented in de::null_listener.

virtual void de::listener::endGeneration ( size_t  genCount,
individual_ptr  bestIndGen,
individual_ptr  bestInd 
) [pure virtual]

called at the end of each generation, unless an exception is thrown before reaching the end of the iteration

Author:
adrian (12/4/2011)
Parameters:
genCount
bestIndGen
bestInd

Implemented in de::null_listener.

virtual void de::listener::endProcessors ( size_t  genCount) [pure virtual]

called after the objective function processing has been completed

Author:
adrian (12/4/2011)
Parameters:
genCount

Implemented in de::null_listener.

virtual void de::listener::endSelection ( size_t  genCount) [pure virtual]

called after the selection has been performed

Author:
adrian (12/4/2011)
Parameters:
genCount

Implemented in de::null_listener.

virtual void de::listener::error ( ) [pure virtual]

called if an exception was thrown during the optimization process, and signals an error

Author:
adrian (12/4/2011)

Implemented in de::null_listener.

virtual void de::listener::start ( ) [pure virtual]

called at the start of the optimization process

Author:
adrian (12/4/2011)

Implemented in de::null_listener.

virtual void de::listener::startGeneration ( size_t  genCount) [pure virtual]

called at the start of each generation

Author:
adrian (12/4/2011)
Parameters:
genCount

Implemented in de::null_listener.

virtual void de::listener::startProcessors ( size_t  genCount) [pure virtual]

called before starting the objective function processing

Author:
adrian (12/4/2011)
Parameters:
genCount

Implemented in de::null_listener.

virtual void de::listener::startSelection ( size_t  genCount) [pure virtual]

called before the selection starts

Author:
adrian (12/4/2011)
Parameters:
genCount

Implemented in de::null_listener.


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