Skip to content

Commit

Permalink
rm dupe test "MPC"
Browse files Browse the repository at this point in the history
  • Loading branch information
hdunham committed Oct 8, 2024
1 parent 1f27348 commit 45a58ca
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ else # run HiGHS tests
@test maximum(r["ElectricUtility"]["to_load_series_kw"][1:15]) <= 98.0
@test maximum(r["ElectricUtility"]["to_load_series_kw"][16:24]) <= 97.0
@test sum(r["PV"]["to_grid_series_kw"]) 0
grid_draw = r["ElectricUtility"]["to_load_series_kw"] .+ r["ElectricUtility"]["to_battery_series_kw"]
# the grid draw limit in the 10th time step is set to 90
# without the 90 limit the grid draw is 98 in the 10th time step
@test grid_draw[10] <= 90
end

@testset "MPC Multi-node" begin
Expand Down Expand Up @@ -1165,18 +1169,6 @@ else # run HiGHS tests
@test results[3]["Financial"]["lcc"] + results[10]["Financial"]["lcc"] 1.2830872235e7 rtol=1e-5
end

@testset "MPC" begin
model = Model(optimizer_with_attributes(HiGHS.Optimizer, "output_flag" => false, "log_to_console" => false))
r = run_mpc(model, "./scenarios/mpc.json")
@test maximum(r["ElectricUtility"]["to_load_series_kw"][1:15]) <= 98.0
@test maximum(r["ElectricUtility"]["to_load_series_kw"][16:24]) <= 97.0
@test sum(r["PV"]["to_grid_series_kw"]) 0
grid_draw = r["ElectricUtility"]["to_load_series_kw"] .+ r["ElectricUtility"]["to_battery_series_kw"]
# the grid draw limit in the 10th time step is set to 90
# without the 90 limit the grid draw is 98 in the 10th time step
@test grid_draw[10] <= 90
end

@testset verbose=true "Rate Structures" begin

@testset "Tiered Energy" begin
Expand Down

0 comments on commit 45a58ca

Please sign in to comment.