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(LinearArgument 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:51
A object that can build a LinearExpr object.
Definition: LinearArgument.java:21
A linear expression (sum (ai * xi) + b).
Definition: LinearExpr.java:19
long getCoefficient(int index)
Returns the ith coefficient.
int numElements()
Returns the number of terms (excluding the constant one) in this expression.
long getOffset()
Returns the constant part of the expression.
int getVariableIndex(int index)
Returns the index of the ith variable.
Interface to describe a boolean variable or its negation.
Definition: Literal.java:17
int getIndex()