Java Reference
Java Reference
CpSolverSolutionCallback.java
long value(IntVar var)
Returns the value of the variable in the current solution.
Definition: CpSolverSolutionCallback.java:41
long solutionIntegerValue(int index)
Definition: SolutionCallback.java:94
Parent class to create a callback called at each solution.
Definition: CpSolverSolutionCallback.java:39
Interface to describe a boolean variable or its negation.
Definition: Literal.java:17
int getIndex()
int getIndex()
Internal, returns the index of the variable in the underlying CpModelProto.
Definition: java/com/google/ortools/sat/IntVar.java:45
An integer variable.
Definition: java/com/google/ortools/sat/IntVar.java:21
Boolean booleanValue(Literal literal)
Returns the Boolean value of the literal in the current solution.
Definition: CpSolverSolutionCallback.java:47
boolean solutionBooleanValue(int index)
Definition: SolutionCallback.java:98