Skip to content

Commit 8133eca

Browse files
committed
Cleaning up obselete function additions
1 parent e2c7304 commit 8133eca

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/ModelingToolkit.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ export Equation, ConstrainedEquation
162162
export Term, Sym
163163
export SymScope, LocalScope, ParentScope, GlobalScope
164164
export independent_variable, states, parameters, equations, controls, observed, structure, defaults
165-
export ssmodel, linearize
166165
export structural_simplify
167166
export DiscreteSystem, DiscreteProblem
168167

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,6 @@ function generate_control_jacobian(sys::AbstractODESystem, dvs = states(sys), ps
7878
return build_function(jac, dvs, ps, get_iv(sys); kwargs...)
7979
end
8080

81-
"""
82-
```julia
83-
generate_linearization(sys::ODESystem, dvs = states(sys), ps = parameters(sys), ctrls = controls(sys), point = defaults(sys), expression = Val{true}; sparse = false, kwargs...)
84-
```
85-
86-
Generates a function for the linearized state space model of the system. Extra arguments
87-
control the arguments to the internal [`build_function`](@ref) call.
88-
"""
89-
function generate_linearization(sys::AbstractSystem, dvs = states(sys), ps = parameters(sys), ctrls = controls(sys);
90-
simplify=false, sparse=false, kwargs...)
91-
ops = map(eq -> eq.rhs, equations(sys))
92-
93-
jac = calculate_jacobian(sys;simplify=simplify,sparse=sparse)
94-
95-
A = @views J[1:length(states(sys)), 1:length(states(sys))]
96-
B = @views J[1:length(states(sys)), length(states(sys))+1:end]
97-
98-
return A, B
99-
end
10081
@noinline function throw_invalid_derivative(dervar, eq)
10182
msg = "The derivative variable must be isolated to the left-hand " *
10283
"side of the equation like `$dervar ~ ...`.\n Got $eq."

0 commit comments

Comments
 (0)