Skip to content

Commit

Permalink
Fix after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Dec 11, 2024
1 parent 8d482b2 commit 0a8408e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/constraints/capacity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ function add_capacity_constraints!(model, variables, constraints, graph, sets)
[
@constraint(
model,
outgoing_flow_highest_out_resolution[row.index]
assets_profile_times_capacity_out[row.index],
outgoing_flow[row.index] assets_profile_times_capacity_out[row.index],
base_name = "max_output_flows_limit[$(row.asset),$(row.year),$(row.rep_period),$(row.time_block_start):$(row.time_block_end)]"
) for row in eachrow(cons_outgoing.indices)
],
Expand Down
8 changes: 4 additions & 4 deletions src/constraints/storage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function add_storage_constraints!(model, variables, constraints, graph)
# - Maximum storage level
attach_constraint!(
model,
constraints[:storage_level_intra_rp],
constraints[:balance_storage_rep_period],
:max_storage_level_intra_rp_limit,
[
@constraint(
Expand All @@ -91,7 +91,7 @@ function add_storage_constraints!(model, variables, constraints, graph)
# - Minimum storage level
attach_constraint!(
model,
constraints[:storage_level_intra_rp],
constraints[:balance_storage_rep_period],
:min_storage_level_intra_rp_limit,
[
@constraint(
Expand Down Expand Up @@ -157,7 +157,7 @@ function add_storage_constraints!(model, variables, constraints, graph)
# - Maximum storage level
attach_constraint!(
model,
constraints[:storage_level_inter_rp],
constraints[:balance_storage_over_clustered_year],
:max_storage_level_inter_rp_limit,
[
@constraint(
Expand All @@ -180,7 +180,7 @@ function add_storage_constraints!(model, variables, constraints, graph)
# - Minimum storage level
attach_constraint!(
model,
constraints[:storage_level_inter_rp],
constraints[:balance_storage_over_clustered_year],
:min_storage_level_inter_rp_limit,
[
@constraint(
Expand Down

0 comments on commit 0a8408e

Please sign in to comment.