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
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 aMultiValueDecisionDiagraminstance.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_transitionsfunction, but that does not return aMultiValueDecisionDiagraminstance, 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