// // The same as TestMax but the max constraint is decomposed to // // x = v[0] or x = v[1] x = v[2] // x >= v[0] and x >= v[1] and x >= v[2] // package weeSeepy.test; import weeSeepy.problem.*; import weeSeepy.variables.*; import weeSeepy.constraints.*; public class TestMaxOr { public static void main(String[] args){ Problem pb = new Problem("TestMaxOr"); int n = 3; IntVar x = pb.intVar("x",0,2); IntVar[] v = new IntVar[n]; for (int i=0;i