public class MaxFunctionEvaluations extends java.lang.Object implements TerminationCondition
Constructor and Description |
---|
MaxFunctionEvaluations(int maxEvaluations)
Constructs a new termination condition based on the maximum number of
function evaluations.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MaxFunctionEvaluations(int maxEvaluations)
maxEvaluations
- the maximum number of function evaluationspublic void initialize(Algorithm algorithm)
TerminationCondition
initialize
in interface TerminationCondition
algorithm
- the algorithmpublic boolean shouldTerminate(Algorithm algorithm)
TerminationCondition
shouldTerminate
in interface TerminationCondition
algorithm
- the algorithmtrue
if the algorithm should terminate; false
otherwiseCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.