@@ -282,7 +282,7 @@ function SymbolicIndexingInterface.variable_index(sys::AbstractSystem, sym::Symb
282
282
end
283
283
284
284
function SymbolicIndexingInterface. variable_symbols (sys:: AbstractSystem )
285
- return solved_unknowns (sys)
285
+ return unknowns (sys)
286
286
end
287
287
288
288
function SymbolicIndexingInterface. is_parameter (sys:: AbstractSystem , sym)
@@ -1165,7 +1165,6 @@ end
1165
1165
1166
1166
namespace_variables (sys:: AbstractSystem ) = unknowns (sys, unknowns (sys))
1167
1167
namespace_parameters (sys:: AbstractSystem ) = parameters (sys, parameters (sys))
1168
- namespace_controls (sys:: AbstractSystem ) = controls (sys, controls (sys))
1169
1168
1170
1169
function namespace_defaults (sys)
1171
1170
defs = defaults (sys)
@@ -1547,12 +1546,6 @@ end
1547
1546
# required in `src/connectors.jl:437`
1548
1547
parameters (_) = []
1549
1548
1550
- function controls (sys:: AbstractSystem )
1551
- ctrls = get_ctrls (sys)
1552
- systems = get_systems (sys)
1553
- isempty (systems) ? ctrls : [ctrls; reduce (vcat, namespace_controls .(systems))]
1554
- end
1555
-
1556
1549
"""
1557
1550
$(TYPEDSIGNATURES)
1558
1551
@@ -1773,19 +1766,6 @@ function isaffine(sys::AbstractSystem)
1773
1766
all (isaffine (r, unknowns (sys)) for r in rhs)
1774
1767
end
1775
1768
1776
- """
1777
- $(SIGNATURES)
1778
-
1779
- Return a list of actual unknowns needed to be solved by solvers.
1780
- """
1781
- function solved_unknowns (sys:: AbstractSystem )
1782
- sts = unknowns (sys)
1783
- if has_solved_unknowns (sys)
1784
- sts = something (get_solved_unknowns (sys), sts)
1785
- end
1786
- return sts
1787
- end
1788
-
1789
1769
# ##
1790
1770
# ## System utils
1791
1771
# ##
@@ -1978,18 +1958,6 @@ end
1978
1958
1979
1959
Base. write (io:: IO , sys:: AbstractSystem ) = write (io, readable_code (toexpr (sys)))
1980
1960
1981
- function get_or_construct_tearing_state (sys)
1982
- if has_tearing_state (sys)
1983
- state = get_tearing_state (sys)
1984
- if state === nothing
1985
- state = TearingState (sys)
1986
- end
1987
- else
1988
- state = nothing
1989
- end
1990
- state
1991
- end
1992
-
1993
1961
"""
1994
1962
n_expanded_connection_equations(sys::AbstractSystem)
1995
1963
@@ -2125,15 +2093,6 @@ function Base.show(
2125
2093
return nothing
2126
2094
end
2127
2095
2128
- function Graphs. incidence_matrix (sys)
2129
- if has_torn_matching (sys) && has_tearing_state (sys)
2130
- state = get_tearing_state (sys)
2131
- incidence_matrix (state. structure. graph, Num (Sym {Real} (:× )))
2132
- else
2133
- return nothing
2134
- end
2135
- end
2136
-
2137
2096
function split_assign (expr)
2138
2097
if ! (expr isa Expr && expr. head === :(= ) && expr. args[2 ]. head === :call )
2139
2098
throw (ArgumentError (" expression should be of the form `sys = foo(a, b)`" ))
0 commit comments