For the SAT based CP-SAT python solver is there a more concise way to express boolean constraints of integer expressions than using reification?
x = model.NewIntVar(1,3,"x")
y = model.NewIntVar(1,3,"y")
# Example constraint: x=2 or y=2
# Does not work: model.AddBoolOr([(x==2),(y==2)])
# version with reification (OnlyEnforceIf)
xIs2 = model.NewBoolVar("xis2")
yIs2 = model.NewBoolVar("yis2")
model.Add((x==2)).OnlyEnforceIf(xIs2);
model.Add((x!=2)).OnlyEnforceIf(xIs2.Not());
model.Add((y==2)).OnlyEnforceIf(yIs2);
model.Add((y!=2)).OnlyEnforceIf(yIs2.Not());
model.AddBoolOr([xIs2,yIs2])