You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function provides 0 for the default values, which is a safe assumption for dummy derivatives of most models. However, the 2nd arument allows for a different default value or values to be used if needed.
123
+
This function provides 0 for the default values, which is a safe assumption for dummy derivatives of most models. However, the 2nd argument allows for a different default value or values to be used if needed.
Copy file name to clipboardexpand all lines: src/inputoutput.jl
+4-4
Original file line number
Diff line number
Diff line change
@@ -112,13 +112,13 @@ end
112
112
same_or_inner_namespace(u, var)
113
113
114
114
Determine whether `var` is in the same namespace as `u`, or a namespace internal to the namespace of `u`.
115
-
Example: `sys.u ~ sys.inner.u` will bind `sys.inner.u`, but `sys.u` remains an unbound, external signal. The namepsaced signal `sys.inner.u` lives in a namspace internal to `sys`.
115
+
Example: `sys.u ~ sys.inner.u` will bind `sys.inner.u`, but `sys.u` remains an unbound, external signal. The namespaced signal `sys.inner.u` lives in a namespace internal to `sys`.
116
116
"""
117
117
functionsame_or_inner_namespace(u, var)
118
118
nu =get_namespace(u)
119
119
nv =get_namespace(var)
120
120
nu == nv ||# namespaces are the same
121
-
startswith(nv, nu) ||# or nv starts with nu, i.e., nv is an inner namepsace to nu
121
+
startswith(nv, nu) ||# or nv starts with nu, i.e., nv is an inner namespace to nu
122
122
occursin('₊', string(getname(var))) &&
123
123
!occursin('₊', string(getname(u))) # or u is top level but var is internal
124
124
end
@@ -127,7 +127,7 @@ function inner_namespace(u, var)
127
127
nu =get_namespace(u)
128
128
nv =get_namespace(var)
129
129
nu == nv &&returnfalse
130
-
startswith(nv, nu) ||# or nv starts with nu, i.e., nv is an inner namepsace to nu
130
+
startswith(nv, nu) ||# or nv starts with nu, i.e., nv is an inner namespace to nu
131
131
occursin('₊', string(getname(var))) &&
132
132
!occursin('₊', string(getname(u))) # or u is top level but var is internal
The return values also include the remaining states and parameters, in the order they appear as arguments to `f`.
179
179
180
-
If `disturbance_inputs` is an array of variables, the generated dynamics function will preserve any state and dynamics associated with distrubance inputs, but the distrubance inputs themselves will not be included as inputs to the generated function. The use case for this is to generate dynamics for state observers that estimate the influence of unmeasured disturbances, and thus require state variables for the disturbance model, but without disturbance inputs since the disturbances are not available for measurement.
180
+
If `disturbance_inputs` is an array of variables, the generated dynamics function will preserve any state and dynamics associated with disturbance inputs, but the disturbance inputs themselves will not be included as inputs to the generated function. The use case for this is to generate dynamics for state observers that estimate the influence of unmeasured disturbances, and thus require state variables for the disturbance model, but without disturbance inputs since the disturbances are not available for measurement.
181
181
See [`add_input_disturbance`](@ref) for a higher-level interface to this functionality.
0 commit comments