Skip to content

Commit

Permalink
Use start to align durations
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada committed Jan 17, 2025
1 parent 3237aba commit cc722a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constraints/constraint_common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function _past_indices(m, indices, param, s_path, t; kwargs...)
(;
ind...,
weight=ifelse(
end_(t) - end_(ind.t) < align_variable_duration_unit(param(m; kwargs..., stochastic_scenario=ind.stochastic_scenario, t=t), end_(t)), 1, 0
end_(t) - end_(ind.t) < align_variable_duration_unit(param(m; kwargs..., stochastic_scenario=ind.stochastic_scenario, t=t), start(t)), 1, 0
),
)
for ind in indices(
Expand Down

0 comments on commit cc722a7

Please sign in to comment.