Skip to content

Commit

Permalink
Add tolerance to subnetwork demands test
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Apr 15, 2024
1 parent 19139f1 commit 2adf139
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/test/allocation_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,10 @@ end
# lower the subnetwork demands
@test subnetwork_demands[(NodeID(:Basin, 2), NodeID(:Pump, 11))] [3.1, 4.0, 0.0] atol =
1e-4
@test subnetwork_demands[(NodeID(:Basin, 6), NodeID(:Pump, 24))] [0.004, 0.0, 0.0]
@test subnetwork_demands[(NodeID(:Basin, 10), NodeID(:Pump, 38))][1:2] [0.001, 0.001]
@test subnetwork_demands[(NodeID(:Basin, 6), NodeID(:Pump, 24))] [0.004, 0.0, 0.0] atol =
1e-4
@test subnetwork_demands[(NodeID(:Basin, 10), NodeID(:Pump, 38))][1:2] [0.001, 0.001] atol =
1e-4
end

@testitem "Allocation level control" begin
Expand Down

0 comments on commit 2adf139

Please sign in to comment.