File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1032,17 +1032,13 @@ simplification will allow models where `n_states = n_equations - n_inputs`.
1032
1032
"""
1033
1033
function structural_simplify (sys:: AbstractSystem , io = nothing ; simplify = false , kwargs... )
1034
1034
sys = expand_connections (sys)
1035
+ sys isa DiscreteSystem && return sys
1035
1036
state = TearingState (sys)
1036
1037
has_io = io != = nothing
1037
1038
has_io && markio! (state, io... )
1038
1039
state, input_idxs = inputs_to_parameters! (state, io)
1039
1040
sys, ag = alias_elimination! (state; kwargs... )
1040
- # ag = AliasGraph(length(ag))
1041
- # TODO : avoid construct `TearingState` again.
1042
- # state = TearingState(sys)
1043
- # has_io && markio!(state, io..., check = false)
1044
1041
check_consistency (state, ag)
1045
- # find_solvables!(state; kwargs...)
1046
1042
sys = dummy_derivative (sys, state, ag; simplify)
1047
1043
fullstates = [map (eq -> eq. lhs, observed (sys)); states (sys)]
1048
1044
@set! sys. observed = topsort_equations (observed (sys), fullstates)
You can’t perform that action at this time.
0 commit comments