Java Reference
Java Reference
CpSolverSolutionCallback.java
Go to the documentation of this file.
Parent class to create a callback called at each solution.
Definition: CpSolverSolutionCallback.java:39
long value(LinearExpr expr)
Returns the value of the linear expression in the current solution.
Definition: CpSolverSolutionCallback.java:41
Boolean booleanValue(Literal literal)
Returns the Boolean value of the literal in the current solution.
Definition: CpSolverSolutionCallback.java:50
int getIndex()
Internal, returns the index of the variable in the underlying CpModelProto.
Definition: java/com/google/ortools/sat/IntVar.java:52
long solutionIntegerValue(int index)
Definition: SolutionCallback.java:94
boolean solutionBooleanValue(int index)
Definition: SolutionCallback.java:98
A linear expression interface that can be parsed.
Definition: LinearExpr.java:20
long getCoefficient(int index)
Returns the ith coefficient.
int numElements()
Returns the number of elements in the interface.
long getOffset()
Returns the constant part of the expression.
Interface to describe a boolean variable or its negation.
Definition: Literal.java:17
int getIndex()