You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p = ModelingToolkit.MTKParameters(simplified_sys, op)
145
+
# we need to provide `op` so the initialization system knows what to hold constant
146
+
# the values don't matter
147
+
Sf, simplified_sys = Blocks.get_sensitivity_function(model, :y; op); # This should work without providing an operating opint containing a dummy derivative
matrices2, _ = Blocks.get_sensitivity(model, :y; op);# Test that we get the same result when calling the higher-level API
154
+
@test matrices1.f_x ≈ matrices2.A[1:7, 1:7]
161
155
nsys =get_named_sensitivity(model, :y; op) # Test that we get the same result when calling an even higher-level API
162
156
@test matrices2.A ≈ nsys.A
163
157
164
158
# Test the same thing for comp sensitivities
165
159
166
-
Sf, simplified_sys = Blocks.get_comp_sensitivity_function(model, :y)# This should work without providing an operating opint containing a dummy derivative
p =ModelingToolkit.MTKParameters(simplified_sys, op)
160
+
Sf, simplified_sys = Blocks.get_comp_sensitivity_function(model, :y; op);# This should work without providing an operating opint containing a dummy derivative
0 commit comments