}
/** to remove all the constraints */
public void reset() {
IlcSolver solver = getIlcSolver();
// restoring constraints
for (int i = constr.size()-1; i>=0; i--) {
IlcConstraint c = constr.get(i);
try {
solver.remove(c);
} catch (IloException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
constr.remove(i);