-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Dear Prof Squillero,
I have a question in zebra example in under the folder 2025-26, wouldn't be better to create the incompatibility based on the initial solution ?? like this:
incoms = []
for _ in range(20): # the number of incompatibilities
b = randint(0, NUM_ITEMS-1)
c1, c2 = randint(0, NUM_CATAGEORIES-1), randint(0, NUM_CATAGEORIES-1)
while c1 == c2:
c2 = randint(0, NUM_CATAGEORIES-1)
incoms.append( { (c1, b), (c2, b) } )because, it make sure there will be incompatibilities !
Best regards.
Metadata
Metadata
Assignees
Labels
No labels