* Example: cardinality(vars,cardVar) < value
*/
public Cardinality(Var[] vars, Var cardVar, String oper, int value) {
super(vars[0].getProblem(),name);
Problem problem = (Problem) vars[0].getProblem();
Constrainer constrainer = problem.getConstrainer();
IntExpArray cVars = problem.getExpArray(vars);
try {
IntExp cVar = (IntExp) cardVar.getImpl();
IntExp cardinality = constrainer.cardinality(cVars,cVar);
problem.defineConstraintImpl(this, cardinality, oper, value);
} catch (Exception f) {
throw new RuntimeException(
"Failure to create constraint "+name);
}