Package org.opt4j.viewer
Class Progress
java.lang.Object
org.opt4j.viewer.Progress
- All Implemented Interfaces:
OptimizerIterationListener
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the progress value between0
and1
.int
Returns the current iteration.Returns the number of maximal iterations.void
iterationComplete
(Optimizer optimizer, int iteration) Invoked if theOptimizer
completes an iteration.
-
Field Details
-
maxIterations
-
iteration
protected int iteration
-
-
Constructor Details
-
Progress
public Progress()
-
-
Method Details
-
get
Returns the progress value between0
and1
.- Returns:
- the progress value
-
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
Description copied from interface:OptimizerIterationListener
Invoked if theOptimizer
completes an iteration.- Specified by:
iterationComplete
in interfaceOptimizerIterationListener
- Parameters:
optimizer
- the optimizeriteration
- the completed iteration
-