Class AfterNoImprovement

    • Constructor Detail

      • AfterNoImprovement

        public AfterNoImprovement​(int nIterationsWithoutChange)
    • 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
      • energy

        public double energy​(Vector x,
                             double... information)