Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globals mdd regular #478

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Globals mdd regular #478

wants to merge 12 commits into from

Conversation

363734
Copy link
Contributor

@363734 363734 commented May 10, 2024

No description provided.

@@ -312,6 +312,146 @@ def value(self):
return arrval in tab


class MDD(GlobalConstraint):
"""The values of the variables in 'array' correspond to a path in the mdd formed by the transition in 'transitions'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"the transition in 'transitions'"
Each path in the MDD will always consist of multiple transitions from 'transitions' no? (unless graph only has two layers).
So there is no "the transition".

Copy link
Collaborator

@ThomSerg ThomSerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this one a lot. Very clean and elegant code. Almost all my comments a regarding some missing documentation. I really had to go deep into the actual code to understand what each section tried to achieve. Some simple comments and docstrings with high-level summaries would really go a long way.

@ThomSerg
Copy link
Collaborator

Maybe merge/rebase with master and test with the new testsuite. I expect the error of the undeclared variable in value() will pop up.

@Wout4
Copy link
Collaborator

Wout4 commented Jun 17, 2024

For this to be merged we want the decompositions to work in nested case, and also add solver support for those that support mdd or regular (Minizinc for sure, not sure which ones too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants