Skip to content

Commit

Permalink
Fix param call to work with the align function
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada committed Jan 17, 2025
1 parent cc722a7 commit d68fe91
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), start(t)), 1, 0
end_(t) - end_(ind.t) < align_variable_duration_unit(param(; kwargs..., stochastic_scenario=ind.stochastic_scenario, t=t), start(t)), 1, 0
),
)
for ind in indices(
Expand Down

0 comments on commit d68fe91

Please sign in to comment.