* @return a constraint or ensuring that at least one variables in BOOLS is set to true
*/
public static Constraint or(BoolVar... BOOLS){
Solver s = BOOLS[0].getSolver();
IntVar sum = VariableFactory.bounded(StringUtils.randomName(),0,BOOLS.length,s);
s.post(IntConstraintFactory.sum(BOOLS,sum));
return IntConstraintFactory.arithm(sum,">=",1);
}
//***********************************************************************************
// Constraint-based constraints