Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.constraintsolver.SearchLog Class Reference
Inheritance diagram for com.google.ortools.constraintsolver.SearchLog:
com.google.ortools.constraintsolver.SearchMonitor com.google.ortools.constraintsolver.BaseObject

Public Member Functions

synchronized void delete ()
 
 SearchLog (Solver solver, IntVar[] vars, String vars_name, double[] scaling_factors, double[] offsets, Supplier< String > display_callback, boolean display_on_new_solutions_only, int period)
 
void enterSearch ()
 
void exitSearch ()
 
boolean atSolution ()
 
void beginFail ()
 
void noMoreSolutions ()
 
void AcceptUncheckedNeighbor ()
 
void applyDecision (Decision decision)
 
void refuteDecision (Decision decision)
 
void outputDecision ()
 
void maintain ()
 
void beginInitialPropagation ()
 
void endInitialPropagation ()
 
String toString ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
void swigReleaseOwnership ()
 
void swigTakeOwnership ()
 
void keepAliveDecisionBuilder (DecisionBuilder db)
 
 SearchMonitor (Solver s)
 
void restartSearch ()
 
void beginNextDecision (DecisionBuilder b)
 
void endNextDecision (DecisionBuilder b, Decision d)
 
void afterDecision (Decision d, boolean apply)
 
void endFail ()
 
boolean acceptSolution ()
 
boolean localOptimum ()
 
boolean acceptDelta (Assignment delta, Assignment deltadelta)
 
void acceptNeighbor ()
 
boolean IsUncheckedSolutionLimitReached ()
 
void periodicCheck ()
 
int progressPercent ()
 
void accept (ModelVisitor visitor)
 
void install ()
 
Solver solver ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 

Protected Member Functions

 SearchLog (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
 SearchMonitor (long cPtr, boolean cMemoryOwn)
 
void swigDirectorDisconnect ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject (long cPtr, boolean cMemoryOwn)
 

Static Protected Member Functions

static long getCPtr (SearchLog obj)
 
static long swigRelease (SearchLog obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
static long getCPtr (SearchMonitor obj)
 
static long swigRelease (SearchMonitor obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
static long getCPtr (BaseObject obj)
 
static long swigRelease (BaseObject obj)
 

Additional Inherited Members

- Static Public Attributes inherited from com.google.ortools.constraintsolver.SearchMonitor
static final int kNoProgress = mainJNI.SearchMonitor_kNoProgress_get()
 
- Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject
transient boolean swigCMemOwn
 

Detailed Description

The base class of all search logs that periodically outputs information when
the search is running.

Definition at line 19 of file SearchLog.java.

Constructor & Destructor Documentation

◆ SearchLog() [1/2]

com.google.ortools.constraintsolver.SearchLog.SearchLog ( long cPtr,
boolean cMemoryOwn )
protected

Definition at line 22 of file SearchLog.java.

◆ SearchLog() [2/2]

com.google.ortools.constraintsolver.SearchLog.SearchLog ( Solver solver,
IntVar[] vars,
String vars_name,
double[] scaling_factors,
double[] offsets,
Supplier< String > display_callback,
boolean display_on_new_solutions_only,
int period )

Definition at line 59 of file SearchLog.java.

Member Function Documentation

◆ AcceptUncheckedNeighbor()

void com.google.ortools.constraintsolver.SearchLog.AcceptUncheckedNeighbor ( )

After accepting an unchecked neighbor during local search.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 83 of file SearchLog.java.

◆ applyDecision()

void com.google.ortools.constraintsolver.SearchLog.applyDecision ( Decision d)

Before applying the decision.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 87 of file SearchLog.java.

◆ atSolution()

boolean com.google.ortools.constraintsolver.SearchLog.atSolution ( )

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.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 71 of file SearchLog.java.

◆ beginFail()

void com.google.ortools.constraintsolver.SearchLog.beginFail ( )

Just when the failure occurs.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 75 of file SearchLog.java.

◆ beginInitialPropagation()

void com.google.ortools.constraintsolver.SearchLog.beginInitialPropagation ( )

Before the initial propagation.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 103 of file SearchLog.java.

◆ delete()

synchronized void com.google.ortools.constraintsolver.SearchLog.delete ( )

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 48 of file SearchLog.java.

◆ endInitialPropagation()

void com.google.ortools.constraintsolver.SearchLog.endInitialPropagation ( )

After the initial propagation.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 107 of file SearchLog.java.

◆ enterSearch()

void com.google.ortools.constraintsolver.SearchLog.enterSearch ( )

Beginning of the search.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 63 of file SearchLog.java.

◆ exitSearch()

void com.google.ortools.constraintsolver.SearchLog.exitSearch ( )

End of the search.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 67 of file SearchLog.java.

◆ finalize()

void com.google.ortools.constraintsolver.SearchLog.finalize ( )
protected

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 44 of file SearchLog.java.

◆ getCPtr()

static long com.google.ortools.constraintsolver.SearchLog.getCPtr ( SearchLog obj)
staticprotected

Definition at line 27 of file SearchLog.java.

◆ maintain()

void com.google.ortools.constraintsolver.SearchLog.maintain ( )

Definition at line 99 of file SearchLog.java.

◆ noMoreSolutions()

void com.google.ortools.constraintsolver.SearchLog.noMoreSolutions ( )

When the search tree is finished.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 79 of file SearchLog.java.

◆ outputDecision()

void com.google.ortools.constraintsolver.SearchLog.outputDecision ( )

Definition at line 95 of file SearchLog.java.

◆ refuteDecision()

void com.google.ortools.constraintsolver.SearchLog.refuteDecision ( Decision d)

Before refuting the decision.

Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.

Definition at line 91 of file SearchLog.java.

◆ swigRelease()

static long com.google.ortools.constraintsolver.SearchLog.swigRelease ( SearchLog obj)
staticprotected

Definition at line 31 of file SearchLog.java.

◆ toString()

String com.google.ortools.constraintsolver.SearchLog.toString ( )

Reimplemented from com.google.ortools.constraintsolver.BaseObject.

Definition at line 111 of file SearchLog.java.


The documentation for this class was generated from the following file: