Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomha committed Oct 7, 2024
1 parent 9bec277 commit 7721814
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/test_device_branch_constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ end
available = true,
active_power_flow = 0.0,
# Force the flow in the opposite direction for testing purposes
active_power_limits_from = (min = -2.0, max = -2.0),
active_power_limits_to = (min = -3.0, max = 2.0),
active_power_limits_from = (min = -2.0, max = 2.0),
active_power_limits_to = (min = -2.0, max = 2.0),
reactive_power_limits_from = (min = -1.0, max = 1.0),
reactive_power_limits_to = (min = -1.0, max = 1.0),
arc = get_arc(line),
loss = (l0 = 0.00, l1 = 0.00),
loss = LinearCurve(0.0),
)

add_component!(sys_5, hvdc)
Expand All @@ -331,7 +331,7 @@ end
set_device_model!(template_uc, ThermalStandard, ThermalBasicUnitCommitment)
set_device_model!(template_uc, RenewableDispatch, FixedOutput)
set_device_model!(template_uc, PowerLoad, StaticPowerLoad)
set_device_model!(template_uc, DeviceModel(Line, StaticBranchUnbounded))
set_device_model!(template_uc, DeviceModel(Line, StaticBranchBounds))
set_device_model!(
template_uc,
DeviceModel(TwoTerminalHVDCLine, HVDCTwoTerminalLossless),
Expand Down Expand Up @@ -424,7 +424,7 @@ end
@test all(
isapprox.(
hvdc_ft_no_loss_values[!, "1"],
hvdc_tf_no_loss_values[!, "1"];
-hvdc_tf_no_loss_values[!, "1"];
atol = 1e-3,
),
)
Expand Down
2 changes: 1 addition & 1 deletion test/test_network_constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ end
test_obj_values = IdDict{System, Float64}(
c_sys5 => 342000.0,
c_sys14 => 142000.0,
c_sys14_dc => 135000.0,
c_sys14_dc => 143000.0,
)
for (ix, sys) in enumerate(systems)
template = get_thermal_dispatch_template_network(DCPPowerModel)
Expand Down

0 comments on commit 7721814

Please sign in to comment.