MOEA Framework 2.12
API Specification

org.moeaframework.core
Interface TerminationCondition

All Known Implementing Classes:
CompoundTerminationCondition, MaxElapsedTime, MaxFunctionEvaluations

public interface TerminationCondition

Interface used to implement conditions for when an algorithm should terminate. The initialize method is invoked when the algorithm is first created to collect any initial conditions, such as the starting time, and shouldTerminate is invoked every step to check if the algorithm should terminate.


Method Summary
 void initialize(Algorithm algorithm)
          Invoked when the algorithm is created to collect any initial conditions.
 boolean shouldTerminate(Algorithm algorithm)
          Invoked after every step to check if the algorithm should terminate.
 

Method Detail

initialize

void initialize(Algorithm algorithm)
Invoked when the algorithm is created to collect any initial conditions. Note that the algorithm may not have been initialized at this point.

Parameters:
algorithm - the algorithm

shouldTerminate

boolean shouldTerminate(Algorithm algorithm)
Invoked after every step to check if the algorithm should terminate.

Parameters:
algorithm - the algorithm
Returns:
true if the algorithm should terminate; false otherwise

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!