Java Reference
Java Reference
CpSolver.java
long value(IntVar var)
Returns the value of a variable in the last solution found.
Definition: CpSolver.java:79
CpSolverResponse response()
Returns the internal response protobuf that is returned internally by the SAT solver.
Definition: CpSolver.java:94
double objectiveValue()
Returns the best objective value found during search.
Definition: CpSolver.java:66
Parent class to create a callback called at each solution.
Definition: CpSolverSolutionCallback.java:39
double bestObjectiveBound()
Returns the best lower bound found when minimizing, of the best upper bound found when maximizing.
Definition: CpSolver.java:74
static Builder newBuilder()
Definition: SatParameters.java:9119
static com.google.ortools.sat.CpSolverResponse solveWithParameters(com.google.ortools.sat.CpModelProto model_proto, com.google.ortools.sat.SatParameters parameters)
Definition: SatHelper.java:54
SatParameters.Builder getParameters()
Returns the builder of the parameters of the SAT solver for modification.
Definition: CpSolver.java:119
CpSolverStatus searchAllSolutions(CpModel model, CpSolverSolutionCallback cb)
Searches for all solutions of a satisfiability problem.
Definition: CpSolver.java:57
Interface to describe a boolean variable or its negation.
Definition: Literal.java:17
.lang.Override double getObjectiveValue()
Definition: CpSolverResponse.java:368
CpSolverStatus solveWithSolutionCallback(CpModel model, CpSolverSolutionCallback cb)
Solves a problem and passes each solution found to the callback.
Definition: CpSolver.java:39
Boolean booleanValue(Literal var)
Returns the Boolean value of a literal in the last solution found.
Definition: CpSolver.java:84
String responseStats()
Returns some statistics on the solution found as a string.
Definition: CpSolver.java:124
int getIndex()
static String solverResponseStats(com.google.ortools.sat.CpSolverResponse response)
Definition: SatHelper.java:84
int getIndex()
Internal, returns the index of the variable in the underlying CpModelProto.
Definition: java/com/google/ortools/sat/IntVar.java:45
long numBranches()
Returns the number of branches explored during search.
Definition: CpSolver.java:99
An integer variable.
Definition: java/com/google/ortools/sat/IntVar.java:21
.lang.Override com.google.ortools.sat.CpSolverStatus getStatus()
Definition: CpSolverResponse.java:299
long numConflicts()
Returns the number of conflicts created during search.
Definition: CpSolver.java:104
CpSolverStatus solve(CpModel model)
Solves the given module, and returns the solve status.
Definition: CpSolver.java:33
long getSolution(int index)
Definition: CpSolverResponse.java:349
static com.google.ortools.sat.CpSolverResponse solveWithParametersAndSolutionCallback(com.google.ortools.sat.CpModelProto model_proto, com.google.ortools.sat.SatParameters parameters, SolutionCallback callback)
Definition: SatHelper.java:67
.lang.Override double getBestObjectiveBound()
Definition: CpSolverResponse.java:385