Package org.opt4j.viewer
Class Progress
java.lang.Object
org.opt4j.viewer.Progress
- All Implemented Interfaces:
OptimizerIterationListener
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the progress value between0and1.intReturns the current iteration.Returns the number of maximal iterations.voiditerationComplete(Optimizer optimizer, int iteration) Invoked if theOptimizercompletes an iteration.
-
Field Details
-
maxIterations
-
iteration
protected int iteration
-
-
Constructor Details
-
Progress
public Progress()
-
-
Method Details
-
get
Returns the progress value between0and1.- 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:OptimizerIterationListenerInvoked if theOptimizercompletes an iteration.- Specified by:
iterationCompletein interfaceOptimizerIterationListener- Parameters:
optimizer- the optimizeriteration- the completed iteration
-