Class ChocoUtil


  • public final class ChocoUtil
    extends Object
    • Method Detail

      • findVariable

        public static Optional<org.chocosolver.solver.variables.Variable> findVariable​(org.chocosolver.solver.Model model,
                                                                                       int id)
        Searches for a variable with a given id as its name
        Parameters:
        model - ChocoSolver model
        id - id that represents the name of the variable
        Returns:
        optional that contains the variable if found