Hi,
I have a constraint from an older version of choco I am trying to convert:
LCF.ifThenElse(
ICF.arithm(xIn[j][i],"=",0),
LCF.and(
ICF.arithm(xOut[j][i],"=",0),
ICF.arithm(p[j][i],"=",0)
),
ICF.table(new IntVar[]{xIn[j][i], xOut[j][i],p[j][i]}, tupleSB, strategy)
);
Essentially, if xIn = 0, then xOut = 0 and p = 0, else Apply table constraint to (xIn, xOut, p)
I'm a little confused if need to create a relational expression with xOut and p to assign their values, or use model.ifThenElse(...)
Thanks, and would be happy for any help