Skip to content

Commit 78c027b

Browse files
committed
Add test_thermal_unit_constr.py
1 parent bfca34c commit 78c027b

File tree

2 files changed

+408
-1
lines changed

2 files changed

+408
-1
lines changed

src/pownet/optim_model/constraints/thermal_unit_constr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def add_c_link_ppbar(
162162
and the maximum power output above the minimum capacity
163163
"""
164164
return model.addConstrs(
165-
(pbar[unit, t] >= p[unit, t] for t in timesteps for unit in thermal_units),
165+
(pbar[unit, t] >= p[unit, t] for unit in thermal_units for t in timesteps),
166166
name="link_ppbar",
167167
)
168168

0 commit comments

Comments
 (0)