Class ChocoUtil
- java.lang.Object
-
- de.rwth.swc.coffee4j.algorithmic.util.ChocoUtil
-
public final class ChocoUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
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 modelid
- id that represents the name of the variable- Returns:
- optional that contains the variable if found
-
-