Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Oct 24, 2023
1 parent 2305802 commit 22fd670
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data_structure/temporal_structure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ function _generate_time_slice_relationships!(m::Model)
# When that's the case, there is a gap on the window boundary
# that would result in 'transition' constraints not being properly enforced
# (and thus, for instance, free units started at the beginning of each window)
# Here we bridge that gap in t_before_t
# Here we bridge that gap by making the last time slice of the previous window
# be 'before' the fist one of the current window.
succeeding_time_slices_hist = Dict(
last(history_time_slices) => [first(time_slice(m; temporal_block=blk))]
for (blk, history_time_slices) in m.ext[:spineopt].temporal_structure[:history_time_slice].block_time_slices
Expand Down

0 comments on commit 22fd670

Please sign in to comment.