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

Public Member Functions

synchronized void delete ()
 
 RegularLimit (Solver s, SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions, boolean smart_time_check, boolean cumulative)
 
void copy (SearchLimit limit)
 
SearchLimit makeClone ()
 
RegularLimit MakeIdenticalClone ()
 
boolean CheckWithOffset (SWIGTYPE_p_absl__Duration offset)
 
void init ()
 
void exitSearch ()
 
void UpdateLimits (SWIGTYPE_p_absl__Duration time, long branches, long failures, long solutions)
 
long wall_time ()
 
long branches ()
 
long failures ()
 
long solutions ()
 
boolean IsUncheckedSolutionLimitReached ()
 
int progressPercent ()
 
String toString ()
 
void install ()
 
void accept (ModelVisitor visitor)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.SearchLimit
void keepAliveDecisionBuilder (DecisionBuilder db)
 
boolean crossed ()
 
boolean check ()
 
void enterSearch ()
 
void beginNextDecision (DecisionBuilder b)
 
void periodicCheck ()
 
void refuteDecision (Decision d)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
void swigReleaseOwnership ()
 
void swigTakeOwnership ()
 
 SearchMonitor (Solver s)
 
void restartSearch ()
 
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 ()
 
Solver solver ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 

Protected Member Functions

 RegularLimit (long cPtr, boolean cMemoryOwn)
 
void finalize ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.SearchLimit
 SearchLimit (long cPtr, boolean cMemoryOwn)
 
- 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 (RegularLimit obj)
 
static long swigRelease (RegularLimit obj)
 
- Static Protected Member Functions inherited from com.google.ortools.constraintsolver.SearchLimit
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

Usual limit based on wall_time, number of explored branches and
number of failures in the search tree

Definition at line 15 of file RegularLimit.java.

Constructor & Destructor Documentation

◆ RegularLimit() [1/2]

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

Definition at line 18 of file RegularLimit.java.

◆ RegularLimit() [2/2]

com.google.ortools.constraintsolver.RegularLimit.RegularLimit ( Solver s,
SWIGTYPE_p_absl__Duration time,
long branches,
long failures,
long solutions,
boolean smart_time_check,
boolean cumulative )

Definition at line 55 of file RegularLimit.java.

Member Function Documentation

◆ accept()

void com.google.ortools.constraintsolver.RegularLimit.accept ( ModelVisitor visitor)

Accepts the given model visitor.

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

Definition at line 121 of file RegularLimit.java.

◆ branches()

long com.google.ortools.constraintsolver.RegularLimit.branches ( )

Definition at line 93 of file RegularLimit.java.

◆ CheckWithOffset()

boolean com.google.ortools.constraintsolver.RegularLimit.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 from com.google.ortools.constraintsolver.SearchLimit.

Definition at line 73 of file RegularLimit.java.

◆ copy()

void com.google.ortools.constraintsolver.RegularLimit.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 from com.google.ortools.constraintsolver.SearchLimit.

Definition at line 59 of file RegularLimit.java.

◆ delete()

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

Reimplemented from com.google.ortools.constraintsolver.SearchLimit.

Definition at line 44 of file RegularLimit.java.

◆ exitSearch()

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

End of the search.

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

Definition at line 81 of file RegularLimit.java.

◆ failures()

long com.google.ortools.constraintsolver.RegularLimit.failures ( )

Definition at line 97 of file RegularLimit.java.

◆ finalize()

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

Reimplemented from com.google.ortools.constraintsolver.SearchLimit.

Definition at line 40 of file RegularLimit.java.

◆ getCPtr()

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

Definition at line 23 of file RegularLimit.java.

◆ init()

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

This method is called when the search limit is initialized.

Reimplemented from com.google.ortools.constraintsolver.SearchLimit.

Definition at line 77 of file RegularLimit.java.

◆ install()

void com.google.ortools.constraintsolver.RegularLimit.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.SearchLimit.

Definition at line 117 of file RegularLimit.java.

◆ IsUncheckedSolutionLimitReached()

boolean com.google.ortools.constraintsolver.RegularLimit.IsUncheckedSolutionLimitReached ( )

Returns true if the limit of solutions has been reached including
unchecked solutions.

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

Definition at line 105 of file RegularLimit.java.

◆ makeClone()

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

Allocates a clone of the limit.

Reimplemented from com.google.ortools.constraintsolver.SearchLimit.

Definition at line 63 of file RegularLimit.java.

◆ MakeIdenticalClone()

RegularLimit com.google.ortools.constraintsolver.RegularLimit.MakeIdenticalClone ( )

Definition at line 68 of file RegularLimit.java.

◆ progressPercent()

int com.google.ortools.constraintsolver.RegularLimit.progressPercent ( )

Returns a percentage representing the propress of the search before
reaching limits.

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

Definition at line 109 of file RegularLimit.java.

◆ solutions()

long com.google.ortools.constraintsolver.RegularLimit.solutions ( )

Definition at line 101 of file RegularLimit.java.

◆ swigRelease()

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

Definition at line 27 of file RegularLimit.java.

◆ toString()

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

Reimplemented from com.google.ortools.constraintsolver.SearchLimit.

Definition at line 113 of file RegularLimit.java.

◆ UpdateLimits()

void com.google.ortools.constraintsolver.RegularLimit.UpdateLimits ( SWIGTYPE_p_absl__Duration time,
long branches,
long failures,
long solutions )

Definition at line 85 of file RegularLimit.java.

◆ wall_time()

long com.google.ortools.constraintsolver.RegularLimit.wall_time ( )

Definition at line 89 of file RegularLimit.java.


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