Class AfterIterations

    • Constructor Detail

      • AfterIterations

        public AfterIterations​(int maxIterations)
        Stops after a given number of iterations.
        Parameters:
        maxIterations - the maximum number of iterations
    • Method Detail

      • isStopped

        public boolean isStopped​(Vector x,
                                 double... information)
        Description copied from interface: StopCondition
        This is called after each iteration to determine whether the termination conditions are met, e.g., convergence.
        Specified by:
        isStopped in interface StopCondition
        Parameters:
        x - the current state of the algorithm
        information - auxiliary information, e.g., the energy at a given state
        Returns:
        true if the iteration should stop