diff --git a/src/devices_models/devices/TwoTerminalDC_branches.jl b/src/devices_models/devices/TwoTerminalDC_branches.jl index c99de67bd0..dc249b3712 100644 --- a/src/devices_models/devices/TwoTerminalDC_branches.jl +++ b/src/devices_models/devices/TwoTerminalDC_branches.jl @@ -275,12 +275,11 @@ function add_constraints!( ::DeviceModel{U, HVDCTwoTerminalDispatch}, ::NetworkModel{<:PM.AbstractDCPModel}, ) where {T <: Union{FlowRateConstraintToFrom, FlowRateConstraintFromTo}, - U <: PSY.TwoTerminalHVDCLine} + U <: PSY.TwoTerminalHVDCLine} _add_hvdc_flow_constraints!(container, devices, T()) return end - function add_constraints!( container::OptimizationContainer, ::Type{T},