From 30a49ca91f2ac98071e03b632379680548b6dbb2 Mon Sep 17 00:00:00 2001 From: Daniel Thom Date: Thu, 21 Sep 2023 15:21:10 -0600 Subject: [PATCH] Use getter function Co-authored-by: Jose Daniel Lara --- src/devices_models/device_constructors/branch_constructor.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices_models/device_constructors/branch_constructor.jl b/src/devices_models/device_constructors/branch_constructor.jl index bd54cf800..c1eb96899 100644 --- a/src/devices_models/device_constructors/branch_constructor.jl +++ b/src/devices_models/device_constructors/branch_constructor.jl @@ -351,7 +351,7 @@ function construct_device!( ) where {T <: PSY.ACBranch} devices = get_available_components(T, sys, get_attribute(model, "filter_function")) - branch_rate_bounds!(container, devices, model, typeof(network_model).parameters[1]) + branch_rate_bounds!(container, devices, model, get_network_formulation(network_model)) add_constraint_dual!(container, sys, model) return end