Class Iteration

java.lang.Object
org.opt4j.core.optimizer.Iteration

public class Iteration extends Object
The Iteration object is used as iteration counter for the optimization.
  • Field Details

    • value

      protected int value
    • maxIterations

      protected final int maxIterations
  • Constructor Details

    • Iteration

      @Inject public Iteration(int maxIterations)
      Constructs a Iteration 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