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
kNoProgressFields inherited from class com.google.ortools.constraintsolver.BaseObject
swigCMemOwn -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAfter accepting an unchecked neighbor during local search.voidapplyDecision(Decision decision) Before applying the decision.booleanThis method is called when a valid solution is found.voidJust when the failure occurs.voidBefore the initial propagation.voiddelete()voidAfter the initial propagation.voidBeginning of the search.voidEnd of the search.protected voidfinalize()static longvoidmaintain()voidWhen the search tree is finished.voidvoidrefuteDecision(Decision decision) Before refuting the decision.static longswigRelease(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, swigTakeOwnershipMethods 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:
finalizein classSearchMonitor
-
delete
public void delete()- Overrides:
deletein classSearchMonitor
-
enterSearch
public void enterSearch()Description copied from class:SearchMonitorBeginning of the search.- Overrides:
enterSearchin classSearchMonitor
-
exitSearch
public void exitSearch()Description copied from class:SearchMonitorEnd of the search.- Overrides:
exitSearchin classSearchMonitor
-
atSolution
public boolean atSolution()Description copied from class:SearchMonitorThis 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:
atSolutionin classSearchMonitor
-
beginFail
public void beginFail()Description copied from class:SearchMonitorJust when the failure occurs.- Overrides:
beginFailin classSearchMonitor
-
noMoreSolutions
public void noMoreSolutions()Description copied from class:SearchMonitorWhen the search tree is finished.- Overrides:
noMoreSolutionsin classSearchMonitor
-
AcceptUncheckedNeighbor
public void AcceptUncheckedNeighbor()Description copied from class:SearchMonitorAfter accepting an unchecked neighbor during local search.- Overrides:
AcceptUncheckedNeighborin classSearchMonitor
-
applyDecision
Description copied from class:SearchMonitorBefore applying the decision.- Overrides:
applyDecisionin classSearchMonitor
-
refuteDecision
Description copied from class:SearchMonitorBefore refuting the decision.- Overrides:
refuteDecisionin classSearchMonitor
-
outputDecision
public void outputDecision() -
maintain
public void maintain() -
beginInitialPropagation
public void beginInitialPropagation()Description copied from class:SearchMonitorBefore the initial propagation.- Overrides:
beginInitialPropagationin classSearchMonitor
-
endInitialPropagation
public void endInitialPropagation()Description copied from class:SearchMonitorAfter the initial propagation.- Overrides:
endInitialPropagationin classSearchMonitor
-
toString
- Overrides:
toStringin classBaseObject
-