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

Public Member Functions

synchronized void delete ()
 
 ImprovementSearchLimit (Solver solver, IntVar objective_var, boolean maximize, double objective_scaling_factor, double objective_offset, double improvement_rate_coefficient, int improvement_rate_solutions_distance)
 
 ImprovementSearchLimit (Solver solver, IntVar[] objective_vars, SWIGTYPE_p_std__vectorT_bool_t maximize, double[] objective_scaling_factors, double[] objective_offsets, double improvement_rate_coefficient, int improvement_rate_solutions_distance)
 
void copy (SearchLimit limit)
 
SearchLimit makeClone ()
 
boolean CheckWithOffset (SWIGTYPE_p_absl__Duration offset)
 
boolean atSolution ()
 
void init ()
 
void install ()
 
- 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)
 
String toString ()
 
- 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 ()
 
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

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

Definition at line 11 of file ImprovementSearchLimit.java.

Constructor & Destructor Documentation

◆ ImprovementSearchLimit() [1/3]

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

Definition at line 14 of file ImprovementSearchLimit.java.

◆ ImprovementSearchLimit() [2/3]

com.google.ortools.constraintsolver.ImprovementSearchLimit.ImprovementSearchLimit ( Solver solver,
IntVar objective_var,
boolean maximize,
double objective_scaling_factor,
double objective_offset,
double improvement_rate_coefficient,
int improvement_rate_solutions_distance )

Definition at line 51 of file ImprovementSearchLimit.java.

◆ ImprovementSearchLimit() [3/3]

com.google.ortools.constraintsolver.ImprovementSearchLimit.ImprovementSearchLimit ( Solver solver,
IntVar[] objective_vars,
SWIGTYPE_p_std__vectorT_bool_t maximize,
double[] objective_scaling_factors,
double[] objective_offsets,
double improvement_rate_coefficient,
int improvement_rate_solutions_distance )

Definition at line 55 of file ImprovementSearchLimit.java.

Member Function Documentation

◆ atSolution()

boolean com.google.ortools.constraintsolver.ImprovementSearchLimit.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 72 of file ImprovementSearchLimit.java.

◆ CheckWithOffset()

boolean com.google.ortools.constraintsolver.ImprovementSearchLimit.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 68 of file ImprovementSearchLimit.java.

◆ copy()

void com.google.ortools.constraintsolver.ImprovementSearchLimit.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 ImprovementSearchLimit.java.

◆ delete()

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

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

Definition at line 40 of file ImprovementSearchLimit.java.

◆ finalize()

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

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

Definition at line 36 of file ImprovementSearchLimit.java.

◆ getCPtr()

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

Definition at line 19 of file ImprovementSearchLimit.java.

◆ init()

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

This method is called when the search limit is initialized.

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

Definition at line 76 of file ImprovementSearchLimit.java.

◆ install()

void com.google.ortools.constraintsolver.ImprovementSearchLimit.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 80 of file ImprovementSearchLimit.java.

◆ makeClone()

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

Allocates a clone of the limit.

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

Definition at line 63 of file ImprovementSearchLimit.java.

◆ swigRelease()

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

Definition at line 23 of file ImprovementSearchLimit.java.


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