Originally posted by: rakesh85
from docplex.cp.model import *
import numpy as np
mdl = CpoModel(name="Propagation testing")
# Variables of the model
x={}
x[1] = integer_var([1,2,3,4])
x[2] = integer_var([1,2,3,4,5])
mdl.add(x[1]+x[2]>3)
mdl.add(x[2]>x[1])
msol= mdl.propagate()
After the domain reduction, the output domain of x[1] ={1,2,3,4} and x[2] ={3,4,5}. However, it should be x[1] = {1,2,3,4} and x[2] = {3,4,5}.
#CPOptimizer#DecisionOptimization