Skip to content

Commit 76cc57a

Browse files
committed
Add structural_simplify
1 parent fc815cb commit 76cc57a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ModelingToolkit.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ export IntervalDomain, ProductDomain, ⊗, CircleDomain
278278
export Equation, ConstrainedEquation
279279
export Term, Sym
280280
export independent_variable, states, parameters, equations, controls, observed, structure
281+
export structural_simplify
281282

282283
export calculate_jacobian, generate_jacobian, generate_function
283284
export calculate_tgrad, generate_tgrad

src/systems/abstractsystem.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,3 +463,5 @@ end
463463
macro named(expr)
464464
esc(_named(expr))
465465
end
466+
467+
structural_simplify(sys) = tearing(alias_elimination(sys))

0 commit comments

Comments
 (0)