Package org.opt4j.core.start
Class Progress
- java.lang.Object
-
- org.opt4j.core.start.Progress
-
- All Implemented Interfaces:
OptimizerIterationListener
public class Progress extends java.lang.Object implements OptimizerIterationListener
- See Also:
Optimizer
-
-
Field Summary
Fields Modifier and Type Field Description protected int
iteration
protected java.lang.Integer
maxIterations
-
Constructor Summary
Constructors Constructor Description Progress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
get()
Returns the progress value between0
and1
.int
getCurrentIteration()
Returns the current iteration.java.lang.Integer
getMaxIterations()
Returns the number of maximal iterations.void
iterationComplete(int iteration)
Invoked if theOptimizer
completes an iteration.
-
-
-
Method Detail
-
get
public java.lang.Double get()
Returns the progress value between0
and1
.- Returns:
- the progress value
-
getMaxIterations
public java.lang.Integer getMaxIterations()
Returns the number of maximal iterations.- Returns:
- the number of maximal iteration
-
getCurrentIteration
public int getCurrentIteration()
Returns the current iteration.- Returns:
- the current iteration
-
iterationComplete
public void iterationComplete(int iteration)
Description copied from interface:OptimizerIterationListener
Invoked if theOptimizer
completes an iteration.- Specified by:
iterationComplete
in interfaceOptimizerIterationListener
- Parameters:
iteration
- the completed iteration
-
-