Skip to content

Commit

Permalink
Merge pull request #22 from PREP-NexT/dev
Browse files Browse the repository at this point in the history
fix bug in trans_capacity_rule
  • Loading branch information
XiaogangHe authored Jun 14, 2024
2 parents 8cb9a1a + 7ea0f70 commit 01d8f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prepshot/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def trans_capacity_rule(self, model, y, z, z1):
pyomo.core.base.PyomoModel.ConcreteModel: Model with transmission capacity constraints.
"""
Year = self.para['year']
remaining_capacity_line = self.para['transmission_line_investment_cost'][z, z1]
remaining_capacity_line = self.para['transmission_line_existing_capacity'][z, z1]
new_capacity_line = sum(model.cap_newline[yy, z, z1] for yy in Year[:Year.index(y) + 1])
return model.cap_lines_existing[y, z, z1] == remaining_capacity_line + new_capacity_line

Expand Down

0 comments on commit 01d8f0c

Please sign in to comment.