chocoteam / chocoteam/pychoco

MDD global constraint with transitions

Open
#43 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
17
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm attempting to post an MDD constraint to the Choco solver from Python, but I would like to define the MDD using the transitions explicitly.
There are some MDD-related endpoints in the API, but I'm unsure on how to use them.

To post the MDD constraint, I need to use `model.mddc`, but that constraint takes as its second argument a `MultiValueDecisionDiagram` instance.
Now, to make the MDD object, I can use the Python object directly, but that only accepts tuples in the constructor.
I also found the `create_mdd_transitions` function, but that does not return a `MultiValueDecisionDiagram` instance, so as far as I understand, it cannot be used to post the MDD constraint itself?

Could you give some advice on how to proceed with this?

Kind regards,
Ignace

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.