Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
synchronized void | delete () |
long | min () |
void | setMin (long m) |
long | max () |
void | setMax (long m) |
void | setRange (long mi, long ma) |
boolean | bound () |
long | value () |
void | removeValue (long v) |
void | removeInterval (long l, long u) |
void | whenBound (Demon d) |
void | whenRange (Demon d) |
void | whenDomain (Demon d) |
long | size () |
boolean | contains (long v) |
IntVarIterator | makeHoleIterator (boolean reversible) |
IntVarIterator | makeDomainIterator (boolean reversible) |
String | toString () |
int | varType () |
IntVar | isEqual (long constant) |
IntVar | isDifferent (long constant) |
IntVar | isGreaterOrEqual (long constant) |
IntVar | isLessOrEqual (long constant) |
void | restoreValue () |
String | baseName () |
int | rawValue () |
Public Member Functions inherited from com.google.ortools.constraintsolver.IntVar | |
boolean | isVar () |
IntVar | var () |
void | removeValues (long[] values) |
void | setValue (long[] values) |
void | whenBound (Runnable closure) |
void | whenDomain (Runnable closure) |
long | oldMin () |
long | oldMax () |
void | accept (ModelVisitor visitor) |
int | index () |
Public Member Functions inherited from com.google.ortools.constraintsolver.IntExpr | |
void | range (long[] l, long[] u) |
void | setValue (long v) |
IntVar | varWithName (String name) |
void | whenRange (Runnable closure) |
Public Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject | |
PropagationBaseObject (Solver s) | |
Solver | solver () |
void | freezeQueue () |
void | unfreezeQueue () |
void | enqueueDelayedDemon (Demon d) |
void | enqueueVar (Demon d) |
void | reset_action_on_fail () |
void | set_variable_to_clean_on_fail (IntVar v) |
String | name () |
void | setName (String name) |
boolean | hasName () |
Public Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject () | |
Static Public Member Functions | |
static int | getKUnboundBooleanVarValue () |
Protected Member Functions | |
BooleanVar (long cPtr, boolean cMemoryOwn) | |
void | finalize () |
Protected Member Functions inherited from com.google.ortools.constraintsolver.IntVar | |
IntVar (long cPtr, boolean cMemoryOwn) | |
Protected Member Functions inherited from com.google.ortools.constraintsolver.IntExpr | |
IntExpr (long cPtr, boolean cMemoryOwn) | |
Protected Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject | |
PropagationBaseObject (long cPtr, boolean cMemoryOwn) | |
Protected Member Functions inherited from com.google.ortools.constraintsolver.BaseObject | |
BaseObject (long cPtr, boolean cMemoryOwn) | |
Static Protected Member Functions | |
static long | getCPtr (BooleanVar obj) |
static long | swigRelease (BooleanVar obj) |
Static Protected Member Functions inherited from com.google.ortools.constraintsolver.IntVar | |
static long | getCPtr (IntVar obj) |
static long | swigRelease (IntVar obj) |
Static Protected Member Functions inherited from com.google.ortools.constraintsolver.IntExpr | |
static long | getCPtr (IntExpr obj) |
static long | swigRelease (IntExpr obj) |
Static Protected Member Functions inherited from com.google.ortools.constraintsolver.PropagationBaseObject | |
static long | getCPtr (PropagationBaseObject obj) |
static long | swigRelease (PropagationBaseObject 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 | |
Protected Attributes inherited from com.google.ortools.constraintsolver.BaseObject | |
transient boolean | swigCMemOwn |
Definition at line 11 of file BooleanVar.java.
|
protected |
Definition at line 14 of file BooleanVar.java.
String com.google.ortools.constraintsolver.BooleanVar.baseName | ( | ) |
Returns a base name for automatic naming.
Reimplemented from com.google.ortools.constraintsolver.PropagationBaseObject.
Definition at line 153 of file BooleanVar.java.
boolean com.google.ortools.constraintsolver.BooleanVar.bound | ( | ) |
Returns true if the min and the max of the expression are equal.
Reimplemented from com.google.ortools.constraintsolver.IntExpr.
Definition at line 75 of file BooleanVar.java.
boolean com.google.ortools.constraintsolver.BooleanVar.contains | ( | long | v | ) |
This method returns whether the value 'v' is in the domain of the
variable.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 107 of file BooleanVar.java.
synchronized void com.google.ortools.constraintsolver.BooleanVar.delete | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 40 of file BooleanVar.java.
|
protected |
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 36 of file BooleanVar.java.
|
staticprotected |
Definition at line 19 of file BooleanVar.java.
|
static |
Definition at line 51 of file BooleanVar.java.
IntVar com.google.ortools.constraintsolver.BooleanVar.isDifferent | ( | long | constant | ) |
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 134 of file BooleanVar.java.
IntVar com.google.ortools.constraintsolver.BooleanVar.isEqual | ( | long | constant | ) |
IsEqual
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 129 of file BooleanVar.java.
IntVar com.google.ortools.constraintsolver.BooleanVar.isGreaterOrEqual | ( | long | constant | ) |
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 139 of file BooleanVar.java.
IntVar com.google.ortools.constraintsolver.BooleanVar.isLessOrEqual | ( | long | constant | ) |
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 144 of file BooleanVar.java.
IntVarIterator com.google.ortools.constraintsolver.BooleanVar.makeDomainIterator | ( | boolean | reversible | ) |
Creates a domain iterator. When 'reversible' is false, the
returned object is created on the normal C++ heap and the solver
does NOT take ownership of the object.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 116 of file BooleanVar.java.
IntVarIterator com.google.ortools.constraintsolver.BooleanVar.makeHoleIterator | ( | boolean | reversible | ) |
Creates a hole iterator. When 'reversible' is false, the returned
object is created on the normal C++ heap and the solver does NOT
take ownership of the object.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 111 of file BooleanVar.java.
long com.google.ortools.constraintsolver.BooleanVar.max | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.IntExpr.
Definition at line 63 of file BooleanVar.java.
long com.google.ortools.constraintsolver.BooleanVar.min | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.IntExpr.
Definition at line 55 of file BooleanVar.java.
int com.google.ortools.constraintsolver.BooleanVar.rawValue | ( | ) |
Definition at line 157 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.removeInterval | ( | long | l, |
long | u ) |
This method removes the interval 'l' .. 'u' from the domain of
the variable. It assumes that 'l' <= 'u'.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 87 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.removeValue | ( | long | v | ) |
This method removes the value 'v' from the domain of the variable.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 83 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.restoreValue | ( | ) |
Definition at line 149 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.setMax | ( | long | m | ) |
Reimplemented from com.google.ortools.constraintsolver.IntExpr.
Definition at line 67 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.setMin | ( | long | m | ) |
Reimplemented from com.google.ortools.constraintsolver.IntExpr.
Definition at line 59 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.setRange | ( | long | l, |
long | u ) |
This method sets both the min and the max of the expression.
Reimplemented from com.google.ortools.constraintsolver.IntExpr.
Definition at line 71 of file BooleanVar.java.
long com.google.ortools.constraintsolver.BooleanVar.size | ( | ) |
This method returns the number of values in the domain of the variable.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 103 of file BooleanVar.java.
|
staticprotected |
Definition at line 23 of file BooleanVar.java.
String com.google.ortools.constraintsolver.BooleanVar.toString | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.PropagationBaseObject.
Definition at line 121 of file BooleanVar.java.
long com.google.ortools.constraintsolver.BooleanVar.value | ( | ) |
This method returns the value of the variable. This method checks
before that the variable is bound.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 79 of file BooleanVar.java.
int com.google.ortools.constraintsolver.BooleanVar.varType | ( | ) |
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 125 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.whenBound | ( | Demon | d | ) |
This method attaches a demon that will be awakened when the
variable is bound.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 91 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.whenDomain | ( | Demon | d | ) |
This method attaches a demon that will watch any domain
modification of the domain of the variable.
Reimplemented from com.google.ortools.constraintsolver.IntVar.
Definition at line 99 of file BooleanVar.java.
void com.google.ortools.constraintsolver.BooleanVar.whenRange | ( | Demon | d | ) |
Attach a demon that will watch the min or the max of the expression.
Reimplemented from com.google.ortools.constraintsolver.IntExpr.
Definition at line 95 of file BooleanVar.java.