Skip to content

Commit 6d0c4a2

Browse files
committed
revert more renames
1 parent 943d103 commit 6d0c4a2

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/linearization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function linearization_function(sys::AbstractSystem, inputs,
4646
warn_empty_op = true,
4747
kwargs...)
4848
if !iscomplete(sys)
49-
sys = mtkbuild(sys; inputs, outputs)
49+
sys = structural_simplify(sys; inputs, outputs)
5050
end
5151
op = Dict(op)
5252
if isempty(op) && warn_empty_op

src/systems/analysis_points.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,13 +596,9 @@ Add an input without an additional output variable.
596596
PerturbOutput(ap::AnalysisPoint) = PerturbOutput(ap, false)
597597

598598
function apply_transformation(tf::PerturbOutput, sys::AbstractSystem)
599-
@show "ok"
600-
@show tf.ap
601599
modify_nested_subsystem(sys, tf.ap) do ap_sys
602600
# get analysis point
603-
@show tf.ap
604601
ap_idx = analysis_point_index(ap_sys, tf.ap)
605-
@show ap_idx
606602
ap_idx === nothing &&
607603
error("Analysis point $(nameof(tf.ap)) not found in system $(nameof(sys)).")
608604
# modified equations

src/systems/systems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ topological sort of the observed equations in `sys`.
2525
+ `allow_symbolic=false`, `allow_parameter=true`, and `conservative=false` limit the coefficient types during tearing. In particular, `conservative=true` limits tearing to only solve for trivial linear systems where the coefficient has the absolute value of ``1``.
2626
+ `fully_determined=true` controls whether or not an error will be thrown if the number of equations don't match the number of inputs, outputs, and equations.
2727
"""
28-
function mtkbuild(
28+
function structural_simplify(
2929
sys::AbstractSystem; additional_passes = [], simplify = false, split = true,
3030
allow_symbolic = false, allow_parameter = true, conservative = false, fully_determined = true,
3131
inputs = Any[], outputs = Any[],

test/downstream/linearize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Nd = 10
114114
@named pid = LimPID(; k, Ti, Td, Nd)
115115

116116
@unpack reference, measurement, ctr_output = pid
117-
pid = mtkbuild(pid, inputs = [reference.u, measurement.u], outputs = [ctr_output.u])
117+
pid = structural_simplify(pid, inputs = [reference.u, measurement.u], outputs = [ctr_output.u])
118118
lsys0 = linearize(pid, [reference.u, measurement.u], [ctr_output.u];
119119
op = Dict(reference.u => 0.0, measurement.u => 0.0))
120120
@unpack int, der = pid
@@ -184,7 +184,7 @@ function saturation(; y_max, y_min = y_max > 0 ? -y_max : -Inf, name)
184184
ODESystem(eqs, t, name = name)
185185
end
186186
@named sat = saturation(; y_max = 1)
187-
sat = mtkbuild(sat, inputs = [u], outputs = [y])
187+
sat = structural_simplify(sat, inputs = [u], outputs = [y])
188188
# inside the linear region, the function is identity
189189
@unpack u, y = sat
190190
lsys = linearize(sat, [u], [y])

0 commit comments

Comments
 (0)