Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertLee125 committed Aug 24, 2024
1 parent dcdbce4 commit 6349c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdplib/ex1_linan_2023/ex1_linan_2023.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def select_one_Y2(m):
Pyomo.LogicalConstraint
Logical constraint that make Y2 to be true for only one element
"""
return pyo.exactly(1,[m.Y2_disjunct[n].indicator_var for n in m.set2])
return pyo.exactly(1, [m.Y2_disjunct[n].indicator_var for n in m.set2])

m.oneY2 = pyo.LogicalConstraint(rule=select_one_Y2)

Expand Down

0 comments on commit 6349c63

Please sign in to comment.