Hello everyone,
I am currently on a "bigger" constraint programming problem in doplex.cp with Python 3.10. To make sure that all constraints are propagated I set
my_params = CpoParameters(AllDiffInferenceLevel='Extended')
since I only use all_different constraints. Please let me know if this line is not needed or it is an incorrect usage. To then start the propagation:
psol = model.propagate(execfile='my path to cpoptimizer')
Now my issue arises: How do I obtain the reduced domains? My first instinct is to iterate over the domains with the domains iterator. Unfortunately this does not work
for d in predecessor_result[0].domain_iterator():
gives a Value error: too many values to unpack (expected 2). Is that due to the reason that the domain of that specific variable (CpoIntVarSolution) is
predecessor_0=((0, 1999, 'holes'),)
? Unfortunately, also predecessor_result[0].domain_contains(x)
gives me this error.
I am convinced that there is an easy way to receive the domains (only integer variables).
I'd be grateful for any hints or help.
Cheers
------------------------------
Justus Kilian Wolff
------------------------------