if (iAllowSwaps && iVariable instanceof Swapable)
v2.addAll(model.variables());
v2.addAll(iVariable.values());
iValEn = new RandomEnumeration(v2, iRandomOrder);
}
SimpleNeighbour n = null;
if (!iValEn.hasMoreElements()) {
if (!iVarEn.hasMoreElements()) {
iVarEn = new RandomEnumeration(model.variables(), iRandomOrder);
}
iVariable = (Variable)iVarEn.nextElement();