JumpSystem
System Constructors
ModelingToolkit.JumpSystem
— Typestruct JumpSystem{U<:ArrayPartition} <: AbstractTimeDependentSystem
A system of jump processes.
Fields
eqs
The jumps of the system. Allowable types are
ConstantRateJump
,VariableRateJump
,MassActionJump
.
iv
The independent variable, usually time.
states
The dependent variables, representing the state of the system. Must not contain the independent variable.
ps
The parameters of the system. Must not contain the independent variable.
var_to_name
Array variables.
observed
name
The name of the system. . These are required to have unique names.
systems
The internal systems.
defaults
defaults: The default values to use when initial conditions and/or parameters are not supplied in
ODEProblem
.
connector_type
type: type of the system
Example
using ModelingToolkit
@parameters β γ
@variables t S(t) I(t) R(t)
rate₁ = β*S*I
affect₁ = [S ~ S - 1, I ~ I + 1]
rate₂ = γ*I
affect₂ = [I ~ I - 1, R ~ R + 1]
j₁ = ConstantRateJump(rate₁,affect₁)
j₂ = ConstantRateJump(rate₂,affect₂)
j₃ = MassActionJump(2*β+γ, [R => 1], [S => 1, R => -1])
@named js = JumpSystem([j₁,j₂,j₃], t, [S,I,R], [β,γ])
Composition and Accessor Functions
get_eqs(sys)
orequations(sys)
: The equations that define the jump system.get_states(sys)
orstates(sys)
: The set of states in the jump system.get_ps(sys)
orparameters(sys)
: The parameters of the jump system.get_iv(sys)
: The independent variable of the jump system.
Transformations
Missing docstring for structural_simplify
. Check Documenter's build log for details.
Analyses
Problem Constructors
Missing docstring for DiscreteProblem
. Check Documenter's build log for details.
Missing docstring for JumpProblem
. Check Documenter's build log for details.