Package org.opt4j.core.optimizer
Class Iteration
java.lang.Object
org.opt4j.core.optimizer.Iteration
The
Iteration
object is used as iteration counter for the
optimization.-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
value
protected int value -
maxIterations
protected final int maxIterations
-
-
Constructor Details
-
Iteration
@Inject public Iteration(int maxIterations) Constructs aIteration
object.- Parameters:
maxIterations
- the maximal number of iterations
-
-
Method Details
-
value
public int value()Returns the current iteration value.- Returns:
- the current iteration value
-
next
public void next()Increases the iteration value by 1. -
max
public int max()Returns the maximal number of iterations.- Returns:
- the maximal number of iterations
-