Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudocubic committed Sep 23, 2024
1 parent 325c63f commit a52ff72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/mld.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
r = optimize_switches!(args)

@test all(_r["termination_status"] == OPTIMAL for (n,_r) in r)
@test isapprox(sum(Float64[_r["objective"] for _r in values(r)]), 119.89; atol=1)
@test isapprox(sum(Float64[_r["objective"] for _r in values(r)]), 176.86; atol=1)
end

@testset "test rolling-horizon optimal switching - lindistflow - traditional" begin
Expand All @@ -53,7 +53,7 @@
r = optimize_switches!(args)

@test all(_r["termination_status"] == OPTIMAL for (n,_r) in r)
@test isapprox(sum(Float64[_r["objective"] for _r in values(r)]), 171.72; atol=1)
@test isapprox(sum(Float64[_r["objective"] for _r in values(r)]), 176.86; atol=1)
end

@testset "test rolling-horizon optimal switching - nfa - block" begin
Expand Down Expand Up @@ -138,7 +138,7 @@
r = optimize_switches!(args)

@test first(r).second["termination_status"] == OPTIMAL
@test isapprox(r["1"]["objective"], 378.47; atol=1)
@test isapprox(r["1"]["objective"], 80.64; atol=1)
end

@testset "test full-lookahead optimal switching - lindistflow - traditional - radial-disabled - inverter-disabled" begin
Expand Down

0 comments on commit a52ff72

Please sign in to comment.