Skip to content

Commit

Permalink
fix: fix naming of new variable in ComplementarySensitivityTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jan 6, 2025
1 parent ccfed45 commit f9b62e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/systems/analysis_points.jl
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,10 @@ end

function apply_transformation(cst::ComplementarySensitivityTransform, sys::AbstractSystem)
sys, (u,) = apply_transformation(GetInput(cst.ap), sys)
sys, (du,) = apply_transformation(AddVariable(cst.ap, Symbol(:comp_sens_du)), sys)
sys, (du,) = apply_transformation(
AddVariable(
cst.ap, Symbol(namespace_hierarchy(nameof(cst.ap))[end], :_comp_sens_du)),
sys)
sys, (_du,) = apply_transformation(PerturbOutput(cst.ap), sys)

# `PerturbOutput` adds the equation `input + _du ~ output`
Expand Down

0 comments on commit f9b62e2

Please sign in to comment.