Skip to content

Commit

Permalink
Remove associate
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertLee125 committed Aug 24, 2024
1 parent ff0de95 commit dcdbce4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions gdplib/ex1_linan_2023/ex1_linan_2023.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ def Disjunction1(m): # Disjunction for first Boolean variable

m.Disjunction1 = Disjunction(rule=Disjunction1, xor=False)

# # Associate boolean variables to disjuncts
# for n1 in m.set1:
# m.Y1[n1].associate_binary_var(m.Y1_disjunct[n1].indicator_var)

# Second disjunction
def build_disjuncts2(m, set2): # Disjuncts for second Boolean variable
"""
Expand Down Expand Up @@ -185,10 +181,6 @@ def Disjunction2(m): # Disjunction for first Boolean variable

m.Disjunction2 = Disjunction(rule=Disjunction2, xor=False)

# # Associate boolean variables to disjuncts
# for n2 in m.set2:
# m.Y2[n2].associate_binary_var(m.Y2_disjunct[n2].indicator_var)

# Logical constraints

# Constraint that allow to apply the reformulation over Y1
Expand Down

0 comments on commit dcdbce4

Please sign in to comment.