/** * Get the value of variable s in this solution * * @param s SetVar * @return the value of variable s in this solution, or null if the variable is not instantiated * in the solution */ public int[] getSetVal(SetVar s) { if (empty) { throw new UnsupportedOperationException("Empty solution. No solution found"); } if (setmap.containsKey(s.getId())) { return setmap.get(s.getId()); } else if ((s.getTypeAndKind() & Variable.TYPE) == Variable.CSTE) { return s.getValues(); } else { return null; } }