Skip to content

Commit

Permalink
add missing constraints and arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jul 31, 2024
1 parent 8e4ed7b commit b6c8219
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/devices_models/device_constructors/branch_constructor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ function construct_device!(
network_model,
)
add_constraint_dual!(container, sys, device_model)

return
end

Expand Down Expand Up @@ -808,6 +809,7 @@ function construct_device!(
model,
network_model,
)
add_feedforward_arguments!(container, model, devices)
return
end

Expand All @@ -832,6 +834,7 @@ function construct_device!(
model,
network_model,
)
add_feedforward_arguments!(container, model, devices)
return
end

Expand All @@ -850,6 +853,7 @@ function construct_device!(
add_constraints!(container, PhaseAngleControlLimit, devices, model, network_model)
add_constraints!(container, NetworkFlowConstraint, devices, model, network_model)
add_constraint_dual!(container, sys, model)
add_feedforward_constraints!(container, model, devices)
return
end

Expand All @@ -868,6 +872,7 @@ function construct_device!(
add_constraints!(container, PhaseAngleControlLimit, devices, model, network_model)
add_constraints!(container, NetworkFlowConstraint, devices, model, network_model)
add_constraint_dual!(container, sys, model)
add_feedforward_constraints!(container, model, devices)
return
end

Expand All @@ -879,6 +884,7 @@ function construct_device!(
model::DeviceModel{PSY.AreaInterchange, U},
network_model::NetworkModel{CopperPlatePowerModel},
) where {U <: Union{StaticBranchUnbounded, StaticBranch}}
add_feedforward_arguments!(container, model, devices)
return
end

Expand Down Expand Up @@ -943,6 +949,7 @@ function construct_device!(
add_parameters!(container, FromToFlowLimitParameter, devices, model)
add_parameters!(container, ToFromFlowLimitParameter, devices, model)
end
add_feedforward_arguments!(container, model, devices)
return
end

Expand All @@ -955,6 +962,7 @@ function construct_device!(
) where {T <: AreaBalancePowerModel}
devices = get_available_components(model, sys)
add_constraints!(container, FlowLimitConstraint, devices, model, network_model)
add_feedforward_constraints!(container, model, devices)
return
end

Expand Down Expand Up @@ -1019,6 +1027,7 @@ function construct_device!(
network_model,
inter_area_branch_map,
)
add_feedforward_constraints!(container, model, devices)
return
end

Expand All @@ -1029,6 +1038,7 @@ function construct_device!(
model::DeviceModel{PSY.AreaInterchange, StaticBranchUnbounded},
network_model::NetworkModel{AreaBalancePowerModel},
)
add_feedforward_constraints!(container, model, devices)
return
end

Expand All @@ -1051,5 +1061,6 @@ function construct_device!(
network_model,
inter_area_branch_map,
)
add_feedforward_constraints!(container, model, devices)
return
end

0 comments on commit b6c8219

Please sign in to comment.