Skip to content

Commit

Permalink
add missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Aug 1, 2024
1 parent 466362d commit 228ff3c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion src/devices_models/device_constructors/branch_constructor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,18 @@ function construct_device!(
return

Check warning on line 886 in src/devices_models/device_constructors/branch_constructor.jl

View check run for this annotation

Codecov / codecov/patch

src/devices_models/device_constructors/branch_constructor.jl#L885-L886

Added lines #L885 - L886 were not covered by tests
end

function construct_device!(

Check warning on line 889 in src/devices_models/device_constructors/branch_constructor.jl

View check run for this annotation

Codecov / codecov/patch

src/devices_models/device_constructors/branch_constructor.jl#L889

Added line #L889 was not covered by tests
container::OptimizationContainer,
sys::PSY.System,
::ModelConstructStage,
model::DeviceModel{PSY.AreaInterchange, StaticBranchUnbounded},
network_model::NetworkModel{T},
) where {T <: PM.AbstractActivePowerModel}
devices = get_available_components(model, sys)
add_feedforward_constraints!(container, model, devices)

Check warning on line 897 in src/devices_models/device_constructors/branch_constructor.jl

View check run for this annotation

Codecov / codecov/patch

src/devices_models/device_constructors/branch_constructor.jl#L896-L897

Added lines #L896 - L897 were not covered by tests
return
end

function construct_device!(
container::OptimizationContainer,
sys::PSY.System,
Expand Down Expand Up @@ -957,7 +969,7 @@ function construct_device!(
::ModelConstructStage,
model::DeviceModel{PSY.AreaInterchange, StaticBranch},
network_model::NetworkModel{T},
) where {T <: AreaBalancePowerModel}
) where {T <: PM.AbstractActivePowerModel}
devices = get_available_components(model, sys)
add_constraints!(container, FlowLimitConstraint, devices, model, network_model)
add_feedforward_constraints!(container, model, devices)
Expand Down
4 changes: 3 additions & 1 deletion src/devices_models/devices/area_interchange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
get_multiplier_value(::FromToFlowLimitParameter, d::PSY.AreaInterchange, ::AbstractBranchFormulation) = -1.0 * PSY.get_from_to_flow_limit(d)
get_multiplier_value(::ToFromFlowLimitParameter, d::PSY.AreaInterchange, ::AbstractBranchFormulation) = PSY.get_to_from_flow_limit(d)

get_parameter_multiplier(::FixValueParameter, ::PSY.AreaInterchange, ::StaticBranch) = 1.0
get_parameter_multiplier(::FixValueParameter, ::PSY.AreaInterchange, ::AbstractBranchFormulation) = 1.0
get_parameter_multiplier(::LowerBoundValueParameter, ::PSY.AreaInterchange, ::AbstractBranchFormulation) = 1.0
get_parameter_multiplier(::UpperBoundValueParameter, ::PSY.AreaInterchange, ::AbstractBranchFormulation) = 1.0

Check warning on line 7 in src/devices_models/devices/area_interchange.jl

View check run for this annotation

Codecov / codecov/patch

src/devices_models/devices/area_interchange.jl#L5-L7

Added lines #L5 - L7 were not covered by tests

get_initial_conditions_device_model(

Check warning on line 9 in src/devices_models/devices/area_interchange.jl

View check run for this annotation

Codecov / codecov/patch

src/devices_models/devices/area_interchange.jl#L9

Added line #L9 was not covered by tests
::OperationModel,
Expand Down

0 comments on commit 228ff3c

Please sign in to comment.