From fea93996fe22b31f64ef1b5eea1cc27da585e56f Mon Sep 17 00:00:00 2001 From: Bart de Koning <74617371+SouthEndMusic@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:17:19 +0100 Subject: [PATCH] Update core/src/allocation.jl Co-authored-by: Martijn Visser --- core/src/allocation.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/allocation.jl b/core/src/allocation.jl index 4254be75c..090eca2cf 100644 --- a/core/src/allocation.jl +++ b/core/src/allocation.jl @@ -1108,7 +1108,7 @@ function allocate!( @debug JuMP.solution_summary(problem) if JuMP.termination_status(problem) !== JuMP.OPTIMAL (; allocation_network_id) = allocation_model - priority = priorities[priority_index] + priority = priorities[priority_idx] error( "Allocation of subnetwork $allocation_network_id, priority $priority coudn't find optimal solution.", )