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

Public Member Functions

synchronized void delete ()
 
void keepAliveDecisionBuilder (DecisionBuilder db)
 
boolean crossed ()
 
boolean check ()
 
boolean CheckWithOffset (SWIGTYPE_p_absl__Duration offset)
 
void init ()
 
void copy (SearchLimit limit)
 
SearchLimit makeClone ()
 
void enterSearch ()
 
void beginNextDecision (DecisionBuilder b)
 
void periodicCheck ()
 
void refuteDecision (Decision d)
 
String toString ()
 
void install ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
void swigReleaseOwnership ()
 
void swigTakeOwnership ()
 
 SearchMonitor (Solver s)
 
void restartSearch ()
 
void exitSearch ()
 
void endNextDecision (DecisionBuilder b, Decision d)
 
void applyDecision (Decision d)
 
void afterDecision (Decision d, boolean apply)
 
void beginFail ()
 
void endFail ()
 
void beginInitialPropagation ()
 
void endInitialPropagation ()
 
boolean acceptSolution ()
 
boolean atSolution ()
 
void noMoreSolutions ()
 
boolean localOptimum ()
 
boolean acceptDelta (Assignment delta, Assignment deltadelta)
 
void acceptNeighbor ()
 
void AcceptUncheckedNeighbor ()
 
boolean IsUncheckedSolutionLimitReached ()
 
int progressPercent ()
 
void accept (ModelVisitor visitor)
 
Solver solver ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 

Protected Member Functions

 SearchLimit (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 (SearchLimit obj)
 
static long swigRelease (SearchLimit 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

Base class of all search limits.

Definition at line 14 of file SearchLimit.java.

Constructor & Destructor Documentation

◆ SearchLimit()

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

Definition at line 17 of file SearchLimit.java.

Member Function Documentation

◆ beginNextDecision()

void com.google.ortools.constraintsolver.SearchLimit.beginNextDecision ( DecisionBuilder b)

Before calling DecisionBuilder::Next.

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

Definition at line 111 of file SearchLimit.java.

◆ check()

boolean com.google.ortools.constraintsolver.SearchLimit.check ( )

This method is called to check the status of the limit. A return
value of true indicates that we have indeed crossed the limit. In
that case, this method will not be called again and the remaining
search will be discarded.

Definition at line 69 of file SearchLimit.java.

◆ CheckWithOffset()

boolean com.google.ortools.constraintsolver.SearchLimit.CheckWithOffset ( SWIGTYPE_p_absl__Duration offset)

Same as Check() but adds the 'offset' value to the current time when time
is considered in the limit.

Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.

Definition at line 77 of file SearchLimit.java.

◆ copy()

void com.google.ortools.constraintsolver.SearchLimit.copy ( SearchLimit limit)

Copy a limit. Warning: leads to a direct (no check) downcasting of 'limit'
so one needs to be sure both SearchLimits are of the same type.

Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.

Definition at line 92 of file SearchLimit.java.

◆ crossed()

boolean com.google.ortools.constraintsolver.SearchLimit.crossed ( )

Returns true if the limit has been crossed.

Definition at line 59 of file SearchLimit.java.

◆ delete()

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

◆ enterSearch()

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

Internal methods.

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

Definition at line 107 of file SearchLimit.java.

◆ finalize()

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

◆ getCPtr()

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

Definition at line 22 of file SearchLimit.java.

◆ init()

void com.google.ortools.constraintsolver.SearchLimit.init ( )

This method is called when the search limit is initialized.

Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.

Definition at line 84 of file SearchLimit.java.

◆ install()

void com.google.ortools.constraintsolver.SearchLimit.install ( )

Registers itself on the solver such that it gets notified of the search
and propagation events. Override to incrementally install listeners for
specific events.

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

Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.

Definition at line 131 of file SearchLimit.java.

◆ keepAliveDecisionBuilder()

void com.google.ortools.constraintsolver.SearchLimit.keepAliveDecisionBuilder ( DecisionBuilder db)

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

Definition at line 54 of file SearchLimit.java.

◆ makeClone()

SearchLimit com.google.ortools.constraintsolver.SearchLimit.makeClone ( )

Allocates a clone of the limit.

Reimplemented in com.google.ortools.constraintsolver.ImprovementSearchLimit, and com.google.ortools.constraintsolver.RegularLimit.

Definition at line 99 of file SearchLimit.java.

◆ periodicCheck()

void com.google.ortools.constraintsolver.SearchLimit.periodicCheck ( )

Periodic call to check limits in long running methods.

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

Definition at line 119 of file SearchLimit.java.

◆ refuteDecision()

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

Before refuting the decision.

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

Definition at line 123 of file SearchLimit.java.

◆ swigRelease()

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

Definition at line 26 of file SearchLimit.java.

◆ toString()

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

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