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

pysdd: refactor to recursively translate into an SDD #322

Merged
merged 4 commits into from
Jun 21, 2023

Conversation

tias
Copy link
Collaborator

@tias tias commented May 27, 2023

may benefit from having the Boolean normalizer as transformation, once it is in master, e.g. #291

elif hasattr(cpm_con, 'decompose'):
# for all global constraints: attempt to convert the decomposition
all_cons = cpm_con.decompose() # all of these must be true, conjoin
return reduce(self.pysdd_manager.conjoin, [self._pysdd_expr(a) for a in all_cons])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this work with the new decompose globals that gives global and local constraints?

@JoD
Copy link
Collaborator

JoD commented Jun 19, 2023

Looks good, but needs to synchronize with decompose tree.

@JoD
Copy link
Collaborator

JoD commented Jun 19, 2023

may benefit from having the Boolean normalizer as transformation, once it is in master, e.g. #291

This is in the master now.

@JoD JoD added the next release Needed for next release label Jun 19, 2023
@IgnaceBleukx
Copy link
Collaborator

Added the new decompose-global function and simplify_boolean function to the .transform() of pysdd.
I think it should be ready to merge now.

@tias
Copy link
Collaborator Author

tias commented Jun 21, 2023

ack, ready to merge

@IgnaceBleukx IgnaceBleukx merged commit d6b7962 into master Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release Needed for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants