diff --git a/gdplib/ex1_linan_2023/ex1_linan_2023.py b/gdplib/ex1_linan_2023/ex1_linan_2023.py index 92faa4d..a069d95 100644 --- a/gdplib/ex1_linan_2023/ex1_linan_2023.py +++ b/gdplib/ex1_linan_2023/ex1_linan_2023.py @@ -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)