![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
This class encapsulates an objective. It requires the direction
(minimize or maximize), the variable to optimize, and the
improvement step.
Definition at line 16 of file OptimizeVar.java.
Static Public Member Functions | |
static long | getCPtr (OptimizeVar obj) |
static long | swigRelease (OptimizeVar obj) |
Static Public Member Functions inherited from com.google.ortools.constraintsolver.ObjectiveMonitor | |
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 |
com.google.ortools.constraintsolver.OptimizeVar.OptimizeVar | ( | long | cPtr, |
boolean | cMemoryOwn ) |
Definition at line 19 of file OptimizeVar.java.
com.google.ortools.constraintsolver.OptimizeVar.OptimizeVar | ( | Solver | solver, |
boolean | maximize, | ||
IntVar | var, | ||
long | step ) |
Definition at line 58 of file OptimizeVar.java.
com.google.ortools.constraintsolver.OptimizeVar.OptimizeVar | ( | Solver | solver, |
SWIGTYPE_p_std__vectorT_bool_t | maximize, | ||
IntVar[] | vars, | ||
long[] | steps ) |
Definition at line 62 of file OptimizeVar.java.
boolean com.google.ortools.constraintsolver.OptimizeVar.acceptSolution | ( | ) |
This method is called when a solution is found. It asserts whether the
solution is valid. A value of false indicates that the solution
should be discarded.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 100 of file OptimizeVar.java.
void com.google.ortools.constraintsolver.OptimizeVar.applyBound | ( | ) |
Definition at line 112 of file OptimizeVar.java.
boolean com.google.ortools.constraintsolver.OptimizeVar.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.ObjectiveMonitor.
Definition at line 96 of file OptimizeVar.java.
void com.google.ortools.constraintsolver.OptimizeVar.beginNextDecision | ( | DecisionBuilder | db | ) |
Internal methods.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 84 of file OptimizeVar.java.
long com.google.ortools.constraintsolver.OptimizeVar.best | ( | ) |
Returns the best value found during search.
Definition at line 69 of file OptimizeVar.java.
synchronized void com.google.ortools.constraintsolver.OptimizeVar.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.ObjectiveMonitor.
Definition at line 45 of file OptimizeVar.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.ObjectiveMonitor.
Definition at line 41 of file OptimizeVar.java.
|
static |
Definition at line 24 of file OptimizeVar.java.
void com.google.ortools.constraintsolver.OptimizeVar.keepAliveDecisionBuilder | ( | DecisionBuilder | db | ) |
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 56 of file OptimizeVar.java.
String com.google.ortools.constraintsolver.OptimizeVar.Name | ( | ) |
Definition at line 104 of file OptimizeVar.java.
void com.google.ortools.constraintsolver.OptimizeVar.refuteDecision | ( | Decision | d | ) |
Before refuting the decision.
Reimplemented from com.google.ortools.constraintsolver.SearchMonitor.
Definition at line 92 of file OptimizeVar.java.
|
static |
Definition at line 28 of file OptimizeVar.java.
String com.google.ortools.constraintsolver.OptimizeVar.toString | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.BaseObject.
Definition at line 108 of file OptimizeVar.java.
IntVar com.google.ortools.constraintsolver.OptimizeVar.var | ( | ) |
Returns the variable that is optimized.
Definition at line 76 of file OptimizeVar.java.