Skip to content

Commit

Permalink
bugfix overwriting bidirectional
Browse files Browse the repository at this point in the history
  • Loading branch information
julia1071 committed Nov 18, 2024
1 parent f0fc2e8 commit b7a8986
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ def init_cut_bidirectional_fix2(const, t):
)

if self.flexibility_data["power_energy_ratio"] == "fixedcapacity":
b_tec.const_cut_bidirectional = pyo.Constraint(
b_tec.const_cut_bidirectional1 = pyo.Constraint(
self.set_t_performance, rule=init_cut_bidirectional_fix1
)
b_tec.const_cut_bidirectional = pyo.Constraint(
b_tec.const_cut_bidirectional2 = pyo.Constraint(
self.set_t_performance, rule=init_cut_bidirectional_fix2
)
else:
Expand Down

0 comments on commit b7a8986

Please sign in to comment.