Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Oct 3, 2024
1 parent 897d2ef commit 52d5667
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/pyomobook/gdp-ch/gdp_uc.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def obj(m):
def nontrivial(m, g):
return sum(m.Power[g, t] for t in m.TIME) >= len(m.TIME) / 2 * m.MinPower[g]


@model.ConstraintList()
def nondegenerate(m):
for i, g in enumerate(m.GENERATORS):
yield m.Power[g, i+1] == 0
yield m.Power[g, i + 1] == 0

0 comments on commit 52d5667

Please sign in to comment.