PAIR- Type of the (point, value) pair. The type of the "value" part of the pair (not used by this class).
public class SimplePointChecker<PAIR extends Pair<double,? extends Object>> extends AbstractConvergenceChecker<PAIR>
ConvergenceCheckerinterface using only point coordinates. Convergence is considered to have been reached if either the relative difference between each point coordinate are smaller than a threshold or if either the absolute difference between the point coordinates are smaller than another threshold.
|Constructor and Description|
Build an instance with default threshold.
Build an instance with specified thresholds.
|Modifier and Type||Method and Description|
Check if the optimization algorithm has converged considering the last two points.
public SimplePointChecker(double relativeThreshold, double absoluteThreshold)
relativeThreshold- relative tolerance threshold
absoluteThreshold- absolute tolerance threshold
ConvergenceChecker<PAIR extends Pair<double,? extends Object>>
AbstractConvergenceChecker<PAIR extends Pair<double,? extends Object>>
iteration- Index of current iteration
previous- Best point in the previous iteration.
current- Best point in the current iteration.
trueif the algorithm has converged.
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.