Skip to content

Commit

Permalink
Fix t_high_resolution_path
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawin committed Dec 3, 2024
1 parent 3f6e503 commit cb52ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constraints/constraint_common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ function t_highest_resolution_path(m, indices, extra_indices...)
scens_by_t = t_highest_resolution_sets!(m, _scens_by_t(indices))
extra_scens_by_t = _scens_by_t(Iterators.flatten(extra_indices))
for (t, scens) in scens_by_t
for t_long in t_in_t(m; t_short=t)
union!(scens, get(extra_scens_by_t, t_long, ()))
for t_short in t_in_t(m; t_long=t)
union!(scens, get(extra_scens_by_t, t_short, ()))
end
end
((t, path) for (t, scens) in scens_by_t for path in active_stochastic_paths(m, scens))
Expand Down

0 comments on commit cb52ed6

Please sign in to comment.