Serializable
, Cloneable
, DelayValueHolder
, DESSolver
AdamsBashforthSolver
, AdamsMoultonSolver
, DormandPrince54Solver
, DormandPrince853Solver
, GraggBulirschStoerSolver
, HighamHall54Solver
public abstract class FirstOrderSolver extends AdaptiveStepsizeIntegrator
Modifier and Type | Field | Description |
---|---|---|
protected org.apache.commons.math.ode.AbstractIntegrator |
integrator |
The integrator used.
|
clonedSolver, PROGRESS
absTol, relTol
Constructor | Description |
---|---|
FirstOrderSolver() |
default constructor
|
FirstOrderSolver(double stepSize) |
|
FirstOrderSolver(double stepSize,
boolean nonnegative) |
|
FirstOrderSolver(FirstOrderSolver firstOrderSolver) |
clone constructor
|
Modifier and Type | Method | Description |
---|---|---|
abstract FirstOrderSolver |
clone() |
|
double[] |
computeChange(DESystem DES,
double[] y,
double t,
double stepSize,
double[] change,
boolean steadyState) |
Computes the change for a given system at the current time with the
current setting for the integration step size.
|
protected abstract void |
createIntegrator() |
initialization function of the integrator
|
org.apache.commons.math.ode.AbstractIntegrator |
getIntegrator() |
|
protected boolean |
hasSolverEventProcessing() |
|
void |
setStepSize(double stepSize) |
Set the integration step size.
|
additionalResults, addPropertyChangeListener, computeDelayedValue, computeSteadyState, eventOccurred, firePropertyChange, g, getName, getSerialversionuid, getStepSize, inBetweenSteps, initResultMatrix, initResultMatrix, initResultMatrix, isIncludeIntermediates, isNonnegative, isUnstable, processEvents, processEventsAndRules, processRules, removePropertyChangeListener, reset, resetState, setIncludeIntermediates, setNonnegative, setUnstableFlag, solve, solve, solve, solve, steadystate
getAbsTol, getRelTol, setAbsTol, setRelTol
getKiSAOterm
protected org.apache.commons.math.ode.AbstractIntegrator integrator
public FirstOrderSolver()
public FirstOrderSolver(double stepSize)
stepSize
- public FirstOrderSolver(double stepSize, boolean nonnegative)
stepSize
- nonnegative
- the nonnegative flag of the super classAbstractDESSolver
public FirstOrderSolver(FirstOrderSolver firstOrderSolver)
firstOrderSolver
- public void setStepSize(double stepSize)
DESSolver
setStepSize
in interface DESSolver
setStepSize
in class AbstractDESSolver
public abstract FirstOrderSolver clone()
clone
in interface DESSolver
clone
in class AbstractDESSolver
public double[] computeChange(DESystem DES, double[] y, double t, double stepSize, double[] change, boolean steadyState) throws org.apache.commons.math.ode.DerivativeException
AbstractDESSolver
computeChange
in class AbstractDESSolver
DES
- The system to be simulated.y
- The current state of the system.t
- The current simulation time.stepSize
- The current integration step size.change
- The vector for the resulting change of the system.org.apache.commons.math.ode.DerivativeException
protected abstract void createIntegrator()
public org.apache.commons.math.ode.AbstractIntegrator getIntegrator()
protected boolean hasSolverEventProcessing()
hasSolverEventProcessing
in class AbstractDESSolver
Copyright © 2007–2018. All rights reserved.