@@ -1285,12 +1285,12 @@ The `simplified_sys` has undergone [`structural_simplify`](@ref) and had any occ
1285
1285
See also [`linearize`](@ref) which provides a higher-level interface.
1286
1286
"""
1287
1287
function linearization_function (sys:: AbstractSystem , inputs,
1288
- outputs; simplify = false ,
1289
- initialize = true ,
1290
- op = Dict (),
1291
- p = DiffEqBase. NullParameters (),
1292
- zero_dummy_der = false ,
1293
- kwargs... )
1288
+ outputs; simplify = false ,
1289
+ initialize = true ,
1290
+ op = Dict (),
1291
+ p = DiffEqBase. NullParameters (),
1292
+ zero_dummy_der = false ,
1293
+ kwargs... )
1294
1294
inputs isa AbstractVector || (inputs = [inputs])
1295
1295
outputs isa AbstractVector || (outputs = [outputs])
1296
1296
ssys, diff_idxs, alge_idxs, input_idxs = io_preprocessing (sys, inputs, outputs;
@@ -1488,7 +1488,7 @@ end
1488
1488
(; A, B, C, D), simplified_sys = linearize(sys, inputs, outputs; t=0.0, op = Dict(), allow_input_derivatives = false, zero_dummy_der=false, kwargs...)
1489
1489
(; A, B, C, D) = linearize(simplified_sys, lin_fun; t=0.0, op = Dict(), allow_input_derivatives = false, zero_dummy_der=false)
1490
1490
1491
- Return a NamedTuple with the matrices of a linear statespace representation
1491
+ Linearize `sys` between `inputs` and `outputs`, both vectors of variables. Return a NamedTuple with the matrices of a linear statespace representation
1492
1492
on the form
1493
1493
1494
1494
```math
@@ -1586,7 +1586,7 @@ lsys_sym, _ = ModelingToolkit.linearize_symbolic(cl, [f.u], [p.x])
1586
1586
```
1587
1587
"""
1588
1588
function linearize (sys, lin_fun; t = 0.0 , op = Dict (), allow_input_derivatives = false ,
1589
- p = DiffEqBase. NullParameters (), kwargs ... )
1589
+ p = DiffEqBase. NullParameters ())
1590
1590
x0 = merge (defaults (sys), op)
1591
1591
u0, p2, _ = get_u0_p (sys, x0, p; use_union = false , tofloat = true )
1592
1592
0 commit comments