Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed May 21, 2024
1 parent 99d71a2 commit 4041581
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/test/allocation_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,10 @@ end
# Subnetworks interpreted as user_demands require variables and constraints to
# support absolute value expressions in the objective function
problem = allocation_model_main_network.problem
@test problem[:F_abs_user_demand].axes[1] == NodeID.(:Pump, [11, 24, 38])
@test problem[:abs_positive_user_demand].axes[1] == NodeID.(:Pump, [11, 24, 38])
@test problem[:abs_negative_user_demand].axes[1] == NodeID.(:Pump, [11, 24, 38])
node_ids = [NodeID(:UserDemand, 60), NodeID.(:Pump, [11, 24, 38])...]
@test problem[:F_abs_user_demand].axes[1] == node_ids
@test problem[:abs_positive_user_demand].axes[1] == node_ids
@test problem[:abs_negative_user_demand].axes[1] == node_ids

# In each subnetwork, the connection from the main network to the subnetwork is
# interpreted as a source
Expand Down

0 comments on commit 4041581

Please sign in to comment.