PAIR
- Type of the (point, objective value) pair.public interface ConvergenceChecker<PAIR>
SimpleValueChecker
, SimpleVectorValueChecker
and
SimplePointChecker
. The first two consider that convergence is
reached when the objective function value does not change much anymore, it
does not use the point set at all.
The third one considers that convergence is reached when the input point
set does not change much anymore, it does not use objective function value
at all.SimplePointChecker
,
SimpleValueChecker
,
SimpleVectorValueChecker
boolean converged(int iteration, PAIR previous, PAIR current)
iteration
- Current iteration.previous
- Best point in the previous iteration.current
- Best point in the current iteration.true
if the algorithm is considered to have converged.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.