de.jstacs.algorithms.optimization.termination
Interface TerminationCondition

All Known Implementing Classes:
AbsoluteValueCondition, CombinedCondition, IterationCondition, SmallDifferenceOfFunctionEvaluationsCondition, SmallStepCondition, TimeCondition

public interface TerminationCondition

This interface declares a method that can be used to decide whether another iteration in an optimization should be done or not.

Author:
Jens Keilwagen
See Also:
Optimizer

Method Summary
 boolean doNextIteration(int iteration, double f_last, double f_current, double[] gradient, double[] direction, double alpha, Time t)
          This method allows to decide whether to do another iteration in an optimization or not.
 

Method Detail

doNextIteration

boolean doNextIteration(int iteration,
                        double f_last,
                        double f_current,
                        double[] gradient,
                        double[] direction,
                        double alpha,
                        Time t)
This method allows to decide whether to do another iteration in an optimization or not.

Parameters:
iteration - the number of performed iterations
f_last - last value of the function
f_current - current value of the function
gradient - the gradient of the function
direction - the last direction of the optimization
alpha - the last step size
t - a time object measuring the time that has been elapsed in the optimization
Returns:
true if another iteration should be done