Differential Evolution C++ library
|
#include <listener.hpp>
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 |
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
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
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
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
genCount |
Implemented in de::null_listener.
virtual void de::listener::endSelection | ( | size_t | genCount | ) | [pure virtual] |
called after the selection has been performed
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
Implemented in de::null_listener.
virtual void de::listener::start | ( | ) | [pure virtual] |
called at the start of the optimization process
Implemented in de::null_listener.
virtual void de::listener::startGeneration | ( | size_t | genCount | ) | [pure virtual] |
virtual void de::listener::startProcessors | ( | size_t | genCount | ) | [pure virtual] |
called before starting the objective function processing
genCount |
Implemented in de::null_listener.
virtual void de::listener::startSelection | ( | size_t | genCount | ) | [pure virtual] |