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
Return a function that linearizes system `sys`. The function [`linearize`](@ref) provides a higher-level and easier to use interface.
974
974
975
-
`lin_fun` is a function `(u,p,t) -> (; f_x, f_z, g_x, g_z, f_u, g_u, h_x, h_z, h_u)`, i.e., it returns a NamedTuple with the Jacobians of `f,g,h` for the nonlinear `sys` on the form
975
+
`lin_fun` is a function `(variables, p, t) -> (; f_x, f_z, g_x, g_z, f_u, g_u, h_x, h_z, h_u)`, i.e., it returns a NamedTuple with the Jacobians of `f,g,h` for the nonlinear `sys` (technically for `simplified_sys`) on the form
976
976
```math
977
977
ẋ = f(x, z, u)
978
978
0 = g(x, z, u)
979
979
y = h(x, z, u)
980
980
```
981
-
where `x` are differential states, `z` algebraic states, `u` inputs and `y` outputs. To obtain a linear statespace representation, see [`linearize`](@ref).
981
+
where `x` are differential states, `z` algebraic states, `u` inputs and `y` outputs. To obtain a linear statespace representation, see [`linearize`](@ref). The input argument `variables` is a vector defining the operating point, corresponding to `states(simplified_sys)` and `p` is a vector corresponding to the parameters of `simplified_sys`. Note: all variables in `inputs` have been converted to parameters in `simplified_sys`.
982
982
983
983
The `simplified_sys` has undergone [`structural_simplify`](@ref) and had any occurring input or output variables replaced with the variables provided in arguments `inputs` and `outputs`. The states of this system also indicates the order of the states that holds for the linearized matrices.
984
984
@@ -1081,10 +1081,10 @@ function markio!(state, inputs, outputs)
1081
1081
end
1082
1082
end
1083
1083
all(values(inputset)) ||
1084
-
error("Some specified inputs were not found in system. The following Dict indicates the found variables",
1084
+
error("Some specified inputs were not found in system. The following Dict indicates the found variables",
1085
1085
inputset)
1086
1086
all(values(outputset)) ||
1087
-
error("Some specified outputs were not found in system. The following Dict indicates the found variables",
1087
+
error("Some specified outputs were not found in system. The following Dict indicates the found variables",
1088
1088
outputset)
1089
1089
state
1090
1090
end
@@ -1129,7 +1129,7 @@ This example builds the following feedback interconnection and linearizes it fro
0 commit comments