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

#include <termination_strategy.hpp>

Inheritance diagram for de::termination_strategy:

List of all members.

Public Member Functions

virtual bool event (individual_ptr best, size_t genCount)=0

Detailed Description

Abstract base class defining the interface used by a concrete Termination Strategy class

A termination strategy defines the logic used to stop the optimization process. Can be as simple as a generation counter that exits when the max number of generations has been reached, or can implement more complex algorithms that try to minimize the number of execution steps by determinining when a reasonable best value has been reached.

Author:
adrian (12/1/2011)

Member Function Documentation

virtual bool de::termination_strategy::event ( individual_ptr  best,
size_t  genCount 
) [pure virtual]
Author:
adrian (12/1/2011)
Parameters:
bestThe best individual so far
genCountgeneration number
Returns:
bool return true to continue, or false to stop the optimization process

Implemented in de::max_gen_termination_strategy.


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