Google OR-Tools v9.12
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.BaseObjectiveMonitor com.google.ortools.constraintsolver.SearchMonitor com.google.ortools.constraintsolver.BaseObject com.google.ortools.constraintsolver.OptimizeVar

Public Member Functions

 ObjectiveMonitor (long cPtr, boolean cMemoryOwn)
 
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.BaseObjectiveMonitor
 BaseObjectiveMonitor (long cPtr, boolean cMemoryOwn)
 
boolean is_active ()
 
void set_active (boolean is_active)
 
- Public Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
 SearchMonitor (long cPtr, boolean cMemoryOwn)
 
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 (long cPtr, boolean cMemoryOwn)
 
 BaseObject ()
 
String toString ()
 

Static Public Member Functions

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

Protected Member Functions

void finalize ()
 
- Protected Member Functions inherited from com.google.ortools.constraintsolver.SearchMonitor
void swigDirectorDisconnect ()
 

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 )

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)

◆ 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)
static

Definition at line 19 of file ObjectiveMonitor.java.

◆ Maximize()

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

◆ MinimizationVar()

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

◆ ObjectiveVar()

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

◆ Size()

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

◆ Step()

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

◆ swigRelease()

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

Definition at line 23 of file ObjectiveMonitor.java.


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