diff --git a/core/src/allocation_optim.jl b/core/src/allocation_optim.jl index 2d6cf45b1..5965298ea 100644 --- a/core/src/allocation_optim.jl +++ b/core/src/allocation_optim.jl @@ -758,7 +758,7 @@ function save_demands_and_allocations!( if node_id.type == NodeType.UserDemand has_demand = true user_demand_idx = findsorted(user_demand.node_id, node_id) - demand = user_demand.demand[user_demand_idx] + demand = get_user_demand(p, node_id, priority_idx; reduced = false) allocated = user_demand.allocated[user_demand_idx][priority_idx] #NOTE: instantaneous realized = get_flow(graph, inflow_id(graph, node_id), node_id, 0)