Skip to content

Zebra Example Incompatibility creation #44

@sina-behnam

Description

@sina-behnam

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions