Skip to content

[OR-Tools] Ocus assumptions: TypeError: unhashable type: 'set' #689

@kostis-init

Description

@kostis-init

When running ocus_explanations.py, the following error is produced:

    if cpm_var not in self._varmap:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'set'

The issue stems from line 212: if not SAT.solve(assumptions=S):

It will run normally if cast to list: if not SAT.solve(assumptions=list(S)):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions