|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.algorithms.optimization.termination.AbsoluteValueCondition
public class AbsoluteValueCondition
This class stops an optimization if the value of the function
becomes less or equal to an absolute value, i.e.,
.
Constructor Summary | |
---|---|
AbsoluteValueCondition(double threshold)
Deprecated. This constructor creates an instance that stops an minimization when the value of the function is below the given threshold
Be careful! |
Method Summary | |
---|---|
boolean |
doNextIteration(int iteration,
double f_last,
double f_current,
double[] gradient,
double[] direction,
double alpha,
Time t)
Deprecated. This method allows to decide whether to do another iteration in an optimization or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbsoluteValueCondition(double threshold)
threshold
threshold
- the threshold for stopping the optimizationMethod Detail |
---|
public boolean doNextIteration(int iteration, double f_last, double f_current, double[] gradient, double[] direction, double alpha, Time t)
TerminationCondition
doNextIteration
in interface TerminationCondition
iteration
- the number of performed iterationsf_last
- last value of the functionf_current
- current value of the functiongradient
- the gradient of the functiondirection
- the last direction of the optimizationalpha
- the last step sizet
- a time object measuring the time that has been elapsed in the optimization
true
if another iteration should be done
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |