Java Reference
Java Reference
CpSolverSolutionCallback.java
Go to the documentation of this file.
A linear expression (sum (ai * xi) + b).
Definition: LinearExpr.java:19
long getOffset()
Returns the constant part of the expression.
long solutionIntegerValue(int index)
Definition: SolutionCallback.java:94
int getVariableIndex(int index)
Returns the index of the ith variable.
A object that can build a LinearExpr object.
Definition: LinearArgument.java:21
int getIndex()
int numElements()
Returns the number of terms (excluding the constant one) in this expression.
Interface to describe a boolean variable or its negation.
Definition: Literal.java:17
boolean solutionBooleanValue(int index)
Definition: SolutionCallback.java:98
long value(LinearArgument expr)
Returns the value of the linear expression in the current solution.
Definition: CpSolverSolutionCallback.java:41
Parent class to create a callback called at each solution.
Definition: CpSolverSolutionCallback.java:39
long getCoefficient(int index)
Returns the ith coefficient.
Boolean booleanValue(Literal literal)
Returns the Boolean value of the literal in the current solution.
Definition: CpSolverSolutionCallback.java:51