Skip to content

Commit

Permalink
delete stale code
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Mar 15, 2024
1 parent 52274c7 commit eab6a8a
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions src/devices_models/devices/AC_branches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -572,47 +572,6 @@ function get_min_max_limits(
)
end

"""
Add branch flow constraints for monitored lines
"""
function add_constraints!(
container::OptimizationContainer,
::Type{FlowLimitFromToConstraint},
devices::IS.FlattenIteratorWrapper{T},
model::DeviceModel{T, U},
::NetworkModel{V},
) where {
T <: PSY.MonitoredLine,
U <: AbstractBranchFormulation,
V <: PM.AbstractActivePowerModel,
}
error("slacks here")

use_slacks = get_use_slacks(device_model)
if use_slacks
slack_ub = get_variable(container, FlowActivePowerSlackUpperBound(), T)
slack_lb = get_variable(container, FlowActivePowerSlackLowerBound(), T)
end

add_range_constraints!(
container,
FlowLimitFromToConstraint,
FlowActivePowerFromToVariable,
devices,
model,
X,
)
add_range_constraints!(
container,
FlowLimitToFromConstraint,
FlowActivePowerToFromVariable,
devices,
model,
X,
)
return
end

"""
Don't add branch flow constraints for monitored lines if formulation is StaticBranchUnbounded
"""
Expand Down

0 comments on commit eab6a8a

Please sign in to comment.