Class IterativeSolverNotConvergedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IterativeSolverNotConvergedException
    extends NotConvergedException
    Exception for lack of convergence in a linear problem. Contains the final computed residual.
    See Also:
    Serialized Form
    • Constructor Detail

      • IterativeSolverNotConvergedException

        public IterativeSolverNotConvergedException​(NotConvergedException.Reason reason,
                                                    java.lang.String message,
                                                    IterationMonitor iter)
        Constructor for IterativeSolverNotConvergedException
        Parameters:
        reason - Reason for this exception
        message - A more detailed message
        iter - Associated iteration monitor, for extracting residual and iteration number
      • IterativeSolverNotConvergedException

        public IterativeSolverNotConvergedException​(NotConvergedException.Reason reason,
                                                    IterationMonitor iter)
        Constructor for IterativeSolverNotConvergedException
        Parameters:
        reason - Reason for this exception
        iter - Associated iteration monitor, for extracting residual and iteration number
    • Method Detail

      • getResidual

        public double getResidual()
        Returns final computed residual
      • getIterations

        public int getIterations()
        Gets the number of iterations used when this exception was thrown