public class CpSolverSolutionCallback extends SolutionCallback
From the parent class, it inherits the methods:
long numBooleans()
to query the number of boolean variables created.
long numBranches()
to query the number of branches explored so far.
long numConflicts()
to query the number of conflicts created so far.
long numBinaryPropagations()
to query the number of boolean propagations in the SAT
solver so far.
long numIntegerPropagations()
to query the number of integer propagations in the SAT
solver so far.
double wallTime()
to query wall time passed in the search so far.
double userTime()
to query the user time passed in the search so far.
long objectiveValue()
to get the best objective value found so far.
swigCMemOwn
Constructor and Description |
---|
CpSolverSolutionCallback() |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
booleanValue(Literal literal)
Returns the Boolean value of the literal in the current solution.
|
void |
onSolutionCallback()
Callback method to override.
|
long |
value(LinearArgument expr)
Returns the value of the linear expression in the current solution.
|
bestObjectiveBound, delete, finalize, getCPtr, numBinaryPropagations, numBooleans, numBranches, numConflicts, numIntegerPropagations, objectiveValue, solutionBooleanValue, solutionIntegerValue, stopSearch, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnership, userTime, wallTime
public long value(LinearArgument expr)
public java.lang.Boolean booleanValue(Literal literal)
public void onSolutionCallback()
onSolutionCallback
in class SolutionCallback
Copyright © 2025. All rights reserved.