org.jscience.mathematics.analysis.optimization
Interface ConvergenceChecker


public interface ConvergenceChecker

This interface specifies how to check if a direct search method has converged.

Deciding if convergence has been reached is a problem-dependent issue. The user should provide a class implementing this interface to allow the optimization algorithm to stop its search according to the problem at hand.


Method Summary
 boolean converged(PointCostPair[] simplex)
          Check if the optimization algorithm has converged on the simplex.
 

Method Detail

converged

boolean converged(PointCostPair[] simplex)
Check if the optimization algorithm has converged on the simplex.

Parameters:
simplex - ordered simplex (all points in the simplex have been eavluated and are sorted from lowest to largest cost)
Returns:
true if the algorithm is considered to have converged