Skip to content

Commit

Permalink
update test numbers after ORDC update
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomha committed Jun 17, 2024
1 parent 51a4685 commit 68af098
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/test_network_constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ end
PSI.ModelBuildStatus.BUILT
@test solve!(ps_model) == PSI.RunStatus.SUCCESSFULLY_FINALIZED

moi_tests(ps_model, 576, 0, 552, 552, 360, false)
moi_tests(ps_model, 576, 0, 576, 576, 360, false)

opt_container = PSI.get_optimization_container(ps_model)
copper_plate_constraints =
Expand Down
12 changes: 6 additions & 6 deletions test/test_services_constructor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
model = DecisionModel(template, c_sys5_uc)
@test build!(model; output_dir = mktempdir(; cleanup = true)) ==
PSI.ModelBuildStatus.BUILT
moi_tests(model, 648, 0, 120, 216, 72, false)
moi_tests(model, 624, 0, 216, 216, 48, false)
reserve_variables = [
:ActivePowerReserveVariable__VariableReserve__ReserveUp__Reserve1
:ActivePowerReserveVariable__ReserveDemandCurve__ReserveUp__ORDC1
Expand Down Expand Up @@ -99,7 +99,7 @@ end
model = DecisionModel(template, c_sys5_uc; optimizer = cbc_optimizer)
@test build!(model; output_dir = mktempdir(; cleanup = true)) ==
PSI.ModelBuildStatus.BUILT
moi_tests(model, 1008, 0, 480, 216, 192, true)
moi_tests(model, 984, 0, 576, 216, 168, true)
end

@testset "Test Reserves from Thermal Standard UC with NonSpinningReserve" begin
Expand Down Expand Up @@ -137,7 +137,7 @@ end
model = DecisionModel(template, c_sys5_re)
@test build!(model; output_dir = mktempdir(; cleanup = true)) ==
PSI.ModelBuildStatus.BUILT
moi_tests(model, 360, 0, 72, 120, 72, false)
moi_tests(model, 336, 0, 168, 120, 48, false)
end

@testset "Test Reserves from Hydro" begin
Expand All @@ -161,7 +161,7 @@ end
model = DecisionModel(template, c_sys5_hyd)
@test build!(model; output_dir = mktempdir(; cleanup = true)) ==
PSI.ModelBuildStatus.BUILT
moi_tests(model, 240, 0, 48, 96, 72, false)
moi_tests(model, 216, 0, 144, 96, 48, false)
end

@testset "Test Reserves from with slack variables" begin
Expand Down Expand Up @@ -260,7 +260,7 @@ end
model = DecisionModel(template, c_sys5_uc)
@test build!(model; output_dir = mktempdir(; cleanup = true)) ==
PSI.ModelBuildStatus.BUILT
moi_tests(model, 648, 0, 120, 240, 72, false)
moi_tests(model, 624, 0, 216, 240, 48, false)
end

@testset "Test GroupReserve Errors" begin
Expand Down Expand Up @@ -368,7 +368,7 @@ end
model = DecisionModel(template, c_sys5_uc)
@test build!(model; output_dir = mktempdir(; cleanup = true)) ==
PSI.ModelBuildStatus.BUILT
moi_tests(model, 648, 0, 384, 216, 72, false)
moi_tests(model, 624, 0, 480, 216, 48, false)
reserve_variables = [
:ActivePowerReserveVariable__VariableReserve__ReserveUp__Reserve1
:ActivePowerReserveVariable__ReserveDemandCurve__ReserveUp__ORDC1
Expand Down

0 comments on commit 68af098

Please sign in to comment.