Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Mar 27, 2024
1 parent 571aff2 commit 0658fd4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion core/src/allocation_init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ function add_constraints_capacity!(
(; graph) = p
main_network_source_edges = get_main_network_connections(p, allocation_network_id)
F = problem[:F]
edge_ids = graph[].edge_ids[allocation_network_id]
edge_ids_finite_capacity = Tuple{NodeID, NodeID}[]
for (edge, c) in capacity.data
if !isinf(c) && edge main_network_source_edges
Expand Down
2 changes: 0 additions & 2 deletions core/src/allocation_optim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,7 @@ function adjust_capacities_edge!(
p::Parameters,
priority_idx::Int,
)::Nothing
(; graph) = p
(; problem, capacity, allocation_network_id) = allocation_model
edge_ids = graph[].edge_ids[allocation_network_id]
constraints_capacity = problem[:capacity]
F = problem[:F]

Expand Down

0 comments on commit 0658fd4

Please sign in to comment.