P
- Type of the (point, objective value) pair.public interface ConvergenceChecker<P>
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.Modifier and Type | Method and Description |
---|---|
boolean |
converged(int iteration,
P previous,
P current)
Check if the optimization algorithm has converged.
|
boolean converged(int iteration, P previous, P 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 © 2016-2021 CS GROUP. All rights reserved.