Class AdamsIntegrator

All Implemented Interfaces:
FirstOrderIntegrator, ODEIntegrator
Direct Known Subclasses:
AdamsBashforthIntegrator, AdamsMoultonIntegrator

public abstract class AdamsIntegrator extends MultistepIntegrator
Base class for Adams-Bashforth and Adams-Moulton integrators.
Since:
2.0
  • Constructor Details

    • AdamsIntegrator

      public AdamsIntegrator(String name, int nSteps, int order, double minStep, double maxStep, double scalAbsoluteTolerance, double scalRelativeTolerance) throws NumberIsTooSmallException
      Build an Adams integrator with the given order and step control parameters.
      Parameters:
      name - name of the method
      nSteps - number of steps of the method excluding the one being computed
      order - order of the method
      minStep - minimal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than this
      maxStep - maximal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than this
      scalAbsoluteTolerance - allowed absolute error
      scalRelativeTolerance - allowed relative error
      Throws:
      NumberIsTooSmallException - if order is 1 or less
    • AdamsIntegrator

      public AdamsIntegrator(String name, int nSteps, int order, double minStep, double maxStep, double[] vecAbsoluteTolerance, double[] vecRelativeTolerance) throws IllegalArgumentException
      Build an Adams integrator with the given order and step control parameters.
      Parameters:
      name - name of the method
      nSteps - number of steps of the method excluding the one being computed
      order - order of the method
      minStep - minimal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than this
      maxStep - maximal step (sign is irrelevant, regardless of integration direction, forward or backward), the last step can be smaller than this
      vecAbsoluteTolerance - allowed absolute error
      vecRelativeTolerance - allowed relative error
      Throws:
      IllegalArgumentException - if order is 1 or less
  • Method Details