super(indexVar.getProblem(),name);
Problem problem = (Problem) indexVar.getProblem();
Constrainer constrainer = problem.getConstrainer();
IntExpArray intvars = new IntExpArray(constrainer, vars.length);
for (int i = 0; i < vars.length; i++) {
IntExp exp = (IntExp)vars[i].getImpl();
intvars.set(exp, i);
}
try {
IntExp element = intvars.elementAt((IntExp) indexVar.getImpl());
problem.defineConstraintImpl(this, element, oper, value);
}
catch (Exception f) {
throw new RuntimeException("Failure to create constraint "+name);
}