Class SearchLog
java.lang.Object
com.google.ortools.constraintsolver.BaseObject
com.google.ortools.constraintsolver.SearchMonitor
com.google.ortools.constraintsolver.SearchLog
The base class of all search logs that periodically outputs information when
the search is running.
the search is running.
-
Field Summary
Fields inherited from class com.google.ortools.constraintsolver.SearchMonitor
kNoProgress
Fields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
After accepting an unchecked neighbor during local search.void
applyDecision
(Decision decision) Before applying the decision.boolean
This method is called when a valid solution is found.void
Just when the failure occurs.void
Before the initial propagation.void
delete()
void
After the initial propagation.void
Beginning of the search.void
End of the search.protected void
finalize()
static long
void
maintain()
void
When the search tree is finished.void
void
refuteDecision
(Decision decision) Before refuting the decision.static long
swigRelease
(SearchLog obj) toString()
Methods inherited from class com.google.ortools.constraintsolver.SearchMonitor
accept, acceptDelta, acceptNeighbor, acceptSolution, afterDecision, beginNextDecision, endFail, endNextDecision, getCPtr, install, IsUncheckedSolutionLimitReached, keepAliveDecisionBuilder, localOptimum, periodicCheck, progressPercent, restartSearch, solver, swigDirectorDisconnect, swigRelease, swigReleaseOwnership, swigTakeOwnership
Methods inherited from class com.google.ortools.constraintsolver.BaseObject
getCPtr, swigRelease
-
Constructor Details
-
SearchLog
public SearchLog(long cPtr, boolean cMemoryOwn) -
SearchLog
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classSearchMonitor
-
delete
public void delete()- Overrides:
delete
in classSearchMonitor
-
enterSearch
public void enterSearch()Description copied from class:SearchMonitor
Beginning of the search.- Overrides:
enterSearch
in classSearchMonitor
-
exitSearch
public void exitSearch()Description copied from class:SearchMonitor
End of the search.- Overrides:
exitSearch
in classSearchMonitor
-
atSolution
public boolean atSolution()Description copied from class:SearchMonitor
This method is called when a valid solution is found. If the
return value is true, then search will resume after. If the result
is false, then search will stop there.- Overrides:
atSolution
in classSearchMonitor
-
beginFail
public void beginFail()Description copied from class:SearchMonitor
Just when the failure occurs.- Overrides:
beginFail
in classSearchMonitor
-
noMoreSolutions
public void noMoreSolutions()Description copied from class:SearchMonitor
When the search tree is finished.- Overrides:
noMoreSolutions
in classSearchMonitor
-
AcceptUncheckedNeighbor
public void AcceptUncheckedNeighbor()Description copied from class:SearchMonitor
After accepting an unchecked neighbor during local search.- Overrides:
AcceptUncheckedNeighbor
in classSearchMonitor
-
applyDecision
Description copied from class:SearchMonitor
Before applying the decision.- Overrides:
applyDecision
in classSearchMonitor
-
refuteDecision
Description copied from class:SearchMonitor
Before refuting the decision.- Overrides:
refuteDecision
in classSearchMonitor
-
outputDecision
public void outputDecision() -
maintain
public void maintain() -
beginInitialPropagation
public void beginInitialPropagation()Description copied from class:SearchMonitor
Before the initial propagation.- Overrides:
beginInitialPropagation
in classSearchMonitor
-
endInitialPropagation
public void endInitialPropagation()Description copied from class:SearchMonitor
After the initial propagation.- Overrides:
endInitialPropagation
in classSearchMonitor
-
toString
- Overrides:
toString
in classBaseObject
-