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
@@ -161,7 +202,7 @@ If `descriptor = true`, the function `DescriptorSystems.dss2ss` is used. In this
161
202
162
203
The argument `big = true` performs computations in `BigFloat` precision, useful for poorly scaled systems. This may require the user to install and load `GenericLinearAlgebra` (if you get error `no method matching svd!(::Matrix{BigFloat})`).
163
204
"""
164
-
functioncausal_simplification(sys, u2duinds::Vector{Pair{Int, Int}}; balance=false, descriptor=true, simple_infeigs =true, big =false)
bq >10000&&@warn("The numerical balancing of the system is poor (gbalqual = $bq), consider using `balance=true` to balance the system before conversion to StateSpace to improve accuracy of the result.")
234
+
verbose &&bq >10000&&@warn("The numerical balancing of the system is poor (gbalqual = $bq), consider using `balance=true` to balance the system before conversion to StateSpace to improve accuracy of the result.")
194
235
end
195
236
196
237
# NOTE: the conversion implemented in ss(dss) uses gss2ss due to it's initial call to gir to produce a reduced order model and then an SVD-based alg to improve numerics. Should we use this by default?
@@ -206,7 +247,7 @@ for f in [:sensitivity, :comp_sensitivity, :looptransfer]
Call [`ModelingToolkitStandardLibrary.Blocks.get_sensitivity`](@ref) while retaining signal names. Returns a `NamedStateSpace` object (similar to [`named_ss`](@ref)).
259
+
Call [`get_sensitivity`](@ref) while retaining signal names. Returns a `NamedStateSpace` object (similar to [`named_ss`](@ref)).
Call [`ModelingToolkitStandardLibrary.Blocks.get_comp_sensitivity`](@ref) while retaining signal names. Returns a `NamedStateSpace` object (similar to [`named_ss`](@ref)).
267
+
Call [`get_comp_sensitivity`](@ref) while retaining signal names. Returns a `NamedStateSpace` object (similar to [`named_ss`](@ref)).
Call [`ModelingToolkitStandardLibrary.Blocks.get_looptransfer`](@ref) while retaining signal names. Returns a `NamedStateSpace` object (similar to [`named_ss`](@ref)).
275
+
Call [`get_looptransfer`](@ref) while retaining signal names. Returns a `NamedStateSpace` object (similar to [`named_ss`](@ref)).
235
276
"""
236
277
get_named_looptransfer
237
278
@@ -497,7 +538,7 @@ function trajectory_ss(sys, inputs, outputs, sol; t = _max_100(sol.t), allow_inp
497
538
output_names =reduce(vcat, ap.input.u for ap invcat(outputs))
498
539
499
540
op_nothing =Dict(unknowns(sys) .=>nothing) # Remove all defaults present in the original system
500
-
defs = ModelingToolkit.defaults(sys)
541
+
defs = ModelingToolkit.initial_conditions(sys)
501
542
ops =map(t) do ti
502
543
opsol =Dict(x =>robust_sol_getindex(sol, ti, x, defs; verbose) for x in x)
503
544
# When the new behavior of Break is introduced, speficy the value for all inupts in ssys by `for x in [x; perturbation_vars]` on the line above
@@ -778,7 +819,6 @@ Build a function that takes parameters and returns a [`StateSpace`](@ref) object
778
819
- `args` and `kwargs`: are passed to the internal call to `build_function` from the Symbolics.jl package.
779
820
"""
780
821
function Symbolics.build_function(sys::AbstractStateSpace, args...; kwargs...)
781
-
ControlSystemsBase.numeric_type(sys) <:Num||error("Expected a system with symbolic coefficients. Call linearize_symbolic to obtain symbolic jacobians")
0 commit comments