Skip to content

Commit

Permalink
Update duration for incoming inflows
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada committed Feb 5, 2025
1 parent c53bbb3 commit c99898e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/model-preparation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,7 @@ function add_expression_terms_over_clustered_year_constraints!(
view = true,
)

sub_df_flows.duration =
sub_df_flows.time_block_end - sub_df_flows.time_block_start .+ 1
duration = sub_df_flows.time_block_end - sub_df_flows.time_block_start .+ 1

JuMP.add_to_expression!(
cons.expressions[:incoming][row_cons.index],
Expand Down

0 comments on commit c99898e

Please sign in to comment.