Package com.google.ortools.sat
Class SolutionCallback
java.lang.Object
com.google.ortools.sat.SolutionCallback
- Direct Known Subclasses:
CpSolverSolutionCallback
public class SolutionCallback
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
Constructors Constructor Description SolutionCallback()SolutionCallback(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and Type Method Description doublebestObjectiveBound()voiddelete()protected voidfinalize()protected static longgetCPtr(SolutionCallback obj)longnumBinaryPropagations()longnumBooleans()longnumBranches()longnumConflicts()longnumIntegerPropagations()doubleobjectiveValue()voidonSolutionCallback()booleansolutionBooleanValue(int index)longsolutionIntegerValue(int index)voidstopSearch()protected voidswigDirectorDisconnect()voidswigReleaseOwnership()voidswigTakeOwnership()doubleuserTime()doublewallTime()Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
SolutionCallback
public SolutionCallback(long cPtr, boolean cMemoryOwn) -
SolutionCallback
public SolutionCallback()
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize()- Overrides:
finalizein classjava.lang.Object
-
delete
public void delete() -
swigDirectorDisconnect
protected void swigDirectorDisconnect() -
swigReleaseOwnership
public void swigReleaseOwnership() -
swigTakeOwnership
public void swigTakeOwnership() -
onSolutionCallback
public void onSolutionCallback() -
numBooleans
public long numBooleans() -
numBranches
public long numBranches() -
numConflicts
public long numConflicts() -
numBinaryPropagations
public long numBinaryPropagations() -
numIntegerPropagations
public long numIntegerPropagations() -
wallTime
public double wallTime() -
userTime
public double userTime() -
objectiveValue
public double objectiveValue() -
bestObjectiveBound
public double bestObjectiveBound() -
solutionIntegerValue
public long solutionIntegerValue(int index) -
solutionBooleanValue
public boolean solutionBooleanValue(int index) -
stopSearch
public void stopSearch()
-