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

Public Member Functions

synchronized void delete ()
 
 ObjectiveMonitor (Solver solver, SWIGTYPE_p_std__vectorT_bool_t maximize, IntVar[] vars, long[] steps)
 
IntVar ObjectiveVar (int index)
 
IntVar MinimizationVar (int index)
 
long Step (int index)
 
boolean Maximize (int index)
 
long BestValue (int index)
 
int Size ()
 
void enterSearch ()
 
boolean atSolution ()
 
boolean acceptDelta (Assignment delta, Assignment deltadelta)
 
void accept (ModelVisitor visitor)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
void swigReleaseOwnership ()
 
void swigTakeOwnership ()
 
void keepAliveDecisionBuilder (DecisionBuilder db)
 
 SearchMonitor (Solver s)
 
void restartSearch ()
 
void exitSearch ()
 
void beginNextDecision (DecisionBuilder b)
 
void endNextDecision (DecisionBuilder b, Decision d)
 
void applyDecision (Decision d)
 
void refuteDecision (Decision d)
 
void afterDecision (Decision d, boolean apply)
 
void beginFail ()
 
void endFail ()
 
void beginInitialPropagation ()
 
void endInitialPropagation ()
 
boolean acceptSolution ()
 
void noMoreSolutions ()
 
boolean localOptimum ()
 
void acceptNeighbor ()
 
void AcceptUncheckedNeighbor ()
 
boolean IsUncheckedSolutionLimitReached ()
 
void periodicCheck ()
 
int progressPercent ()
 
void install ()
 
Solver solver ()
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject
 BaseObject ()
 
String toString ()
 

Protected Member Functions

 ObjectiveMonitor (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 (ObjectiveMonitor obj)
 
static long swigRelease (ObjectiveMonitor 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 ObjectiveMonitor.java.

Constructor & Destructor Documentation

◆ ObjectiveMonitor() [1/2]

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

Definition at line 14 of file ObjectiveMonitor.java.

◆ ObjectiveMonitor() [2/2]

com.google.ortools.constraintsolver.ObjectiveMonitor.ObjectiveMonitor ( Solver solver,
SWIGTYPE_p_std__vectorT_bool_t maximize,
IntVar[] vars,
long[] steps )

Definition at line 51 of file ObjectiveMonitor.java.

Member Function Documentation

◆ accept()

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

Accepts the given model visitor.

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

Definition at line 93 of file ObjectiveMonitor.java.

◆ acceptDelta()

boolean com.google.ortools.constraintsolver.ObjectiveMonitor.acceptDelta ( Assignment delta,
Assignment deltadelta )

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

Definition at line 89 of file ObjectiveMonitor.java.

◆ atSolution()

boolean com.google.ortools.constraintsolver.ObjectiveMonitor.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.

Reimplemented in com.google.ortools.constraintsolver.OptimizeVar.

Definition at line 85 of file ObjectiveMonitor.java.

◆ BestValue()

long com.google.ortools.constraintsolver.ObjectiveMonitor.BestValue ( int index)

Definition at line 73 of file ObjectiveMonitor.java.

◆ delete()

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

◆ enterSearch()

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

Beginning of the search.

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

Definition at line 81 of file ObjectiveMonitor.java.

◆ finalize()

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

◆ getCPtr()

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

Definition at line 19 of file ObjectiveMonitor.java.

◆ Maximize()

boolean com.google.ortools.constraintsolver.ObjectiveMonitor.Maximize ( int index)

Definition at line 69 of file ObjectiveMonitor.java.

◆ MinimizationVar()

IntVar com.google.ortools.constraintsolver.ObjectiveMonitor.MinimizationVar ( int index)

Definition at line 60 of file ObjectiveMonitor.java.

◆ ObjectiveVar()

IntVar com.google.ortools.constraintsolver.ObjectiveMonitor.ObjectiveVar ( int index)

Definition at line 55 of file ObjectiveMonitor.java.

◆ Size()

int com.google.ortools.constraintsolver.ObjectiveMonitor.Size ( )

Definition at line 77 of file ObjectiveMonitor.java.

◆ Step()

long com.google.ortools.constraintsolver.ObjectiveMonitor.Step ( int index)

Definition at line 65 of file ObjectiveMonitor.java.

◆ swigRelease()

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

Definition at line 23 of file ObjectiveMonitor.java.


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