| Modifier and Type | Field and Description |
|---|---|
| private IntegerSequence. | evaluations
Counter for number of evaluations. |
| private Collection | eventsStates
Events states. |
| private transient ExpandableStatefulODE | expandable
Differential equations to integrate. |
| protected boolean | isLastStep
Indicator for last step. |
| private final String | name
Name of the method. |
| protected boolean | resetOccurred
Indicator that a state or derivative reset was triggered by some event. |
| private boolean | statesInitialized
Initialization indicator of events states. |
| protected Collection | stepHandlers
Step handler. |
| protected double | stepSize
Current stepsize. |
| protected double | stepStart
Current step start time. |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected double | Returns: time at end of stepstep interpolator interpolator, final double[] state vector at step end time, must be reset if an event
asks for resetting or if an events stops integration during the step y, final double[] placeholder array where to put the time derivative of the state vector yDot, final double final integration time tEnd)Accept a step, triggering events and step handlers. |
| public void | addEventHandler(final EventHandler
event handler handler, final double maximal time interval between switching
function checks (this interval prevents missing sign changes in
case the integration steps becomes very large) maxCheckInterval, final double convergence threshold in the event time search convergence, final int upper limit of the iteration count in
the event time search maxIterationCount)Implements org. Add an event handler to the integrator. |
| public void | addEventHandler(final EventHandler
event handler handler, final double maximal time interval between switching
function checks (this interval prevents missing sign changes in
case the integration steps becomes very large) maxCheckInterval, final double convergence threshold in the event time search convergence, final int upper limit of the iteration count in
the event time search maxIterationCount, final UnivariateSolver The root-finding algorithm to use to detect the state
events. solver)Implements org. Add an event handler to the integrator. |
| public void | addStepHandler(final StepHandler
handler for the accepted steps handler)Implements org. Add a step handler to this integrator. |
| public void | clearEventHandlers()
Implements org. Remove all the event handlers that have been added to the integrator. |
| public void | clearStepHandlers()
Implements org. Remove all the step handlers that have been added to the integrator. |
| public void | computeDerivatives(final double
current value of the independent time variable t, final double[] array containing the current value of the state vector y, final double[] placeholder array where to put the time derivative of the state vector yDot)Compute the derivatives and check the number of evaluations. |
| protected IntegerSequence. | |
| public double | getCurrentSignedStepsize()
Implements org. Get the current signed value of the integration stepsize. |
| public double | getCurrentStepStart()
Implements org. Get the current value of the step start time ti. |
| public int | getEvaluations()
Implements org. Get the number of evaluations of the differential equations function. |
| protected Incrementor | Returns: evaluations counter
Deprecated
as of 3.6 replaced with
getCounter()
Get the evaluations counter. |
| public Collection | getEventHandlers()
Implements org. Get all the event handlers that have been added to the integrator. |
| protected ExpandableStatefulODE | Returns: differential equations to integrateGet the differential equations to integrate. |
| public int | getMaxEvaluations()
Implements org. Get the maximal number of functions evaluations. |
| public String | |
| public Collection | getStepHandlers()
Implements org. Get all the step handlers that have been added to the integrator. |
| protected void | initIntegration(final double
start value of the independent time variable t0, final double[] array containing the start value of the state vector y0, final double target time for the integration t)Prepare the start of an integration. |
| public double | integrate(final FirstOrderDifferentialEquations
differential equations to integrate equations, final double initial time t0, final double[] initial value of the state vector at t0 y0, final double target time for the integration
(can be set to a value smaller than t, final double[] t0 for backward integration)placeholder where to put the state vector at each successful
step (and hence at the end of integration), can be the same object as y0 y)Implements org. Integrate the differential equations up to the given time. |
| public abstract void | integrate(ExpandableStatefulODE
complete set of differential equations to integrate equations, double target time for the integration
(can be set to a value smaller than t)t0 for backward integration)Integrate a set of differential equations up to the given time. |
| protected void | sanityChecks(final ExpandableStatefulODE
set of differential equations equations, final double target time for the integration t)Check the integration span. |
| protected void | |
| public void | setMaxEvaluations(int
maximal number of function evaluations (negative
values are silently converted to maximal integer value, thus representing
almost unlimited evaluations) maxEvaluations)Implements org. Set the maximal number of differential equations function evaluations. |
| protected void | setStateInitialized(final boolean
new value for the flag stateInitialized)Set the stateInitialized flag. |
| evaluations | back to summary |
|---|---|
| private IntegerSequence. Counter for number of evaluations. | |
| eventsStates | back to summary |
|---|---|
| private Collection<EventState> eventsStates Events states. | |
| expandable | back to summary |
|---|---|
| private transient ExpandableStatefulODE expandable Differential equations to integrate. | |
| isLastStep | back to summary |
|---|---|
| protected boolean isLastStep Indicator for last step. | |
| name | back to summary |
|---|---|
| private final String name Name of the method. | |
| resetOccurred | back to summary |
|---|---|
| protected boolean resetOccurred Indicator that a state or derivative reset was triggered by some event. | |
| statesInitialized | back to summary |
|---|---|
| private boolean statesInitialized Initialization indicator of events states. | |
| stepHandlers | back to summary |
|---|---|
| protected Collection<StepHandler> stepHandlers Step handler. | |
| stepSize | back to summary |
|---|---|
| protected double stepSize Current stepsize. | |
| stepStart | back to summary |
|---|---|
| protected double stepStart Current step start time. | |
| AbstractIntegrator | back to summary |
|---|---|
| public AbstractIntegrator(final String name) Build an instance.
| |
| AbstractIntegrator | back to summary |
|---|---|
| protected AbstractIntegrator() Build an instance with a null name. | |
| acceptStep | back to summary |
|---|---|
| protected double acceptStep(final AbstractStepInterpolator interpolator, final double[] y, final double[] yDot, final double tEnd) throws MaxCountExceededException, DimensionMismatchException, NoBracketingException Accept a step, triggering events and step handlers.
| |
| addEventHandler | back to summary |
|---|---|
| public void addEventHandler(final EventHandler handler, final double maxCheckInterval, final double convergence, final int maxIterationCount) Implements org. Doc from org. Add an event handler to the integrator.
Uses a default
| |
| addEventHandler | back to summary |
|---|---|
| public void addEventHandler(final EventHandler handler, final double maxCheckInterval, final double convergence, final int maxIterationCount, final UnivariateSolver solver) Implements org. Doc from org. Add an event handler to the integrator.
| |
| addStepHandler | back to summary |
|---|---|
| public void addStepHandler(final StepHandler handler) Implements org. Doc from org. Add a step handler to this integrator. The handler will be called by the integrator for each accepted step.
| |
| clearEventHandlers | back to summary |
|---|---|
| public void clearEventHandlers() Implements org. Doc from org. Remove all the event handlers that have been added to the integrator. | |
| clearStepHandlers | back to summary |
|---|---|
| public void clearStepHandlers() Implements org. Doc from org. Remove all the step handlers that have been added to the integrator. | |
| computeDerivatives | back to summary |
|---|---|
| public void computeDerivatives(final double t, final double[] y, final double[] yDot) throws MaxCountExceededException, DimensionMismatchException, NullPointerException Compute the derivatives and check the number of evaluations.
| |
| getCounter | back to summary |
|---|---|
| protected IntegerSequence. Get the evaluations counter.
| |
| getCurrentSignedStepsize | back to summary |
|---|---|
| public double getCurrentSignedStepsize() Implements org. Doc from org. Get the current signed value of the integration stepsize. This method can be called during integration (typically by
the object implementing the The result is undefined if the method is called outside of
calls to
| |
| getCurrentStepStart | back to summary |
|---|---|
| public double getCurrentStepStart() Implements org. Doc from org. Get the current value of the step start time ti. This method can be called during integration (typically by
the object implementing the The result is undefined if the method is called outside of
calls to
| |
| getEvaluations | back to summary |
|---|---|
| public int getEvaluations() Implements org. Doc from org. Get the number of evaluations of the differential equations function.
The number of evaluations corresponds to the last call to the
| |
| getEvaluationsCounter | back to summary |
|---|---|
| protected Incrementor getEvaluationsCounter()
Deprecated as of 3.6 replaced with Get the evaluations counter.
| |
| getEventHandlers | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Get all the event handlers that have been added to the integrator.
| |
| getExpandable | back to summary |
|---|---|
| protected ExpandableStatefulODE getExpandable() Get the differential equations to integrate.
| |
| getMaxEvaluations | back to summary |
|---|---|
| public int getMaxEvaluations() Implements org. Doc from org. Get the maximal number of functions evaluations.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name of the method.
| |
| getStepHandlers | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Get all the step handlers that have been added to the integrator.
| |
| initIntegration | back to summary |
|---|---|
| protected void initIntegration(final double t0, final double[] y0, final double t) Prepare the start of an integration.
| |
| integrate | back to summary |
|---|---|
| public double integrate(final FirstOrderDifferentialEquations equations, final double t0, final double[] y0, final double t, final double[] y) throws DimensionMismatchException, NumberIsTooSmallException, MaxCountExceededException, NoBracketingException Implements org. Doc from org. Integrate the differential equations up to the given time. This method solves an Initial Value Problem (IVP). Since this method stores some internal state variables made
available in its public interface during integration (
| |
| integrate | back to summary |
|---|---|
| public abstract void integrate(ExpandableStatefulODE equations, double t) throws NumberIsTooSmallException, DimensionMismatchException, MaxCountExceededException, NoBracketingException Integrate a set of differential equations up to the given time. This method solves an Initial Value Problem (IVP). The set of differential equations is composed of a main set, which can be extended by some sets of secondary equations. The set of equations must be already set up with initial time and partial states. At integration completion, the final time and partial states will be available in the same object. Since this method stores some internal state variables made
available in its public interface during integration (
| |
| sanityChecks | back to summary |
|---|---|
| protected void sanityChecks(final ExpandableStatefulODE equations, final double t) throws NumberIsTooSmallException, DimensionMismatchException Check the integration span.
| |
| setEquations | back to summary |
|---|---|
| protected void setEquations(final ExpandableStatefulODE equations) Set the equations.
| |
| setMaxEvaluations | back to summary |
|---|---|
| public void setMaxEvaluations(int maxEvaluations) Implements org. Doc from org. Set the maximal number of differential equations function evaluations. The purpose of this method is to avoid infinite loops which can occur for example when stringent error constraints are set or when lots of discrete events are triggered, thus leading to many rejected steps.
| |
| setStateInitialized | back to summary |
|---|---|
| protected void setStateInitialized(final boolean stateInitialized) Set the stateInitialized flag. This method must be called by integrators with the value
| |