NonlinearSystem
System Constructors
ModelingToolkit.NonlinearSystem — Typestruct NonlinearSystem <: ModelingToolkit.AbstractSystemA nonlinear system of equations.
Fields
eqsVector of equations defining the system.
statesUnknown variables.
psParameters.
observednameName: the name of the system
systemssystems: The internal systems
default_u0default_u0: The default initial conditions to use when initial conditions are not supplied in
ODEProblem.
default_pdefault_p: The default parameters to use when parameters are not supplied in
ODEProblem.
structurestructure: structural information of the system
Examples
@variables x y z
@parameters σ ρ β
eqs = [0 ~ σ*(y-x),
0 ~ x*(ρ-z)-y,
0 ~ x*y - β*z]
ns = NonlinearSystem(eqs, [x,y,z],[σ,ρ,β])Composition and Accessor Functions
sys.eqsorequations(sys): The equations that define the nonlinear system.sys.statesorstates(sys): The set of states in the nonlinear system.sys.parametersorparameters(sys): The parameters of the nonlinear system.
Transformations
Applicable Calculation and Generation Functions
calculate_jacobian
generate_jacobian
jacobian_sparsityProblem Constructors
SciMLBase.NonlinearProblem — Typefunction DiffEqBase.NonlinearProblem{iip}(sys::NonlinearSystem,u0map,
parammap=DiffEqBase.NullParameters();
jac = false, sparse=false,
checkbounds = false,
linenumbers = true, parallel=SerialForm(),
kwargs...) where iipGenerates an NonlinearProblem from a NonlinearSystem and allows for automatically symbolically calculating numerical enhancements.