Class SolverUtil

java.lang.Object
org.ddolib.util.SolverUtil

public final class SolverUtil extends Object
Contains method useful to implements solvers
  • Constructor Details

    • SolverUtil

      public SolverUtil()
  • Method Details

    • unassignedVars

      public static Set<Integer> unassignedVars(int nbVars, Set<Decision> path)
      Returns the set of variables not covered by the given set of decisions.
      Parameters:
      nbVars - the number of variables in the related problem
      path - a set of decision
      Returns:
      the set of variables not covered by the given set of decisions