class StopConditionA

Terminating the evolutionary algorithm

Public Methods

virtual void FoundSolution ()
A solution has been found
virtual void RequestStop ()
Terminating the evolutionary algorithm

Public

Information functions
Checking state of stopconditon
virtual bool IsSolutionFound ()
virtual bool IsStopRequested ()

Documentation

An object that gets this class as a parameter can request a termination of the evolutionary algorithm.

virtual void RequestStop()
Examples:
if (Statistics.GetNumberOfEvaluations() == MaximumAllowedNumberOfEvaluations)
StopCondition.RequestStop();

Returns:
Nothing.
Author:
J.I. van Hemert
Version:
0.1

virtual void FoundSolution()
Examples:
if (Genotype.GetFitness() == Optimum)
StopCondition.FoundSolution();

Returns:
Nothing.
Author:
J.I. van Hemert
Version:
0.1

Information functions

Examples:
while (!StopCondition->IsStopRequested())
// Let the evolutionary algorithm run
if (StopCondition->IsSolutionFound());
cout << "Found solution" << endl;

Returns:
Boolean value answering question.
Author:
J.I. van Hemert
Version:
0.1

virtual bool IsSolutionFound()

virtual bool IsStopRequested()


This class has no child classes.
Author:
J.I. van Hemert
Version:
0.1

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de