Package org.opt4j.viewer
Class Progress
- java.lang.Object
-
- org.opt4j.viewer.Progress
-
- All Implemented Interfaces:
OptimizerIterationListener
public class Progress extends Object implements OptimizerIterationListener
- See Also:
Optimizer
-
-
Field Summary
Fields Modifier and Type Field Description protected intiterationprotected IntegermaxIterations
-
Constructor Summary
Constructors Constructor Description Progress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleget()Returns the progress value between0and1.intgetCurrentIteration()Returns the current iteration.IntegergetMaxIterations()Returns the number of maximal iterations.voiditerationComplete(Optimizer optimizer, int iteration)Invoked if theOptimizercompletes an iteration.
-
-
-
Field Detail
-
maxIterations
@Inject(optional=true) protected Integer maxIterations
-
iteration
protected int iteration
-
-
Method Detail
-
get
public Double get()
Returns the progress value between0and1.- Returns:
- the progress value
-
getMaxIterations
public 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(Optimizer optimizer, int iteration)
Description copied from interface:OptimizerIterationListenerInvoked if theOptimizercompletes an iteration.- Specified by:
iterationCompletein interfaceOptimizerIterationListener- Parameters:
optimizer- the optimizeriteration- the completed iteration
-
-