Java Reference
Java Reference
com/google/ortools/sat/IntVar.java
long getCoefficient(int index)
Returns the ith coefficient.
Definition: com/google/ortools/sat/IntVar.java:67
long[] flattenedIntervals()
This method returns the flattened list of interval bounds of the domain.
Definition: Domain.java:111
Literal not()
Returns the negation of a boolean variable.
Definition: com/google/ortools/sat/IntVar.java:104
IntegerVariableProto.Builder getBuilder()
Returns the variable protobuf builder.
Definition: com/google/ortools/sat/IntVar.java:50
String displayBounds()
Returns the domain as a string without the enclosing [].
Definition: com/google/ortools/sat/IntVar.java:87
Interface to describe a boolean variable or its negation.
Definition: Literal.java:17
We call domain any subset of Int64 = [kint64min, kint64max].
Definition: Domain.java:21
int getVariablesCount()
Definition: CpModelProto.java:234
String toString()
Definition: com/google/ortools/sat/IntVar.java:34
int getIndex()
Internal, returns the index of the variable in the underlying CpModelProto.
Definition: com/google/ortools/sat/IntVar.java:45
String getName()
Returns the name of the variable given upon creation.
Definition: com/google/ortools/sat/IntVar.java:39
IntVar getVariable(int index)
Returns the ith variable.
Definition: com/google/ortools/sat/IntVar.java:61
int numElements()
Returns the number of elements in the interface.
Definition: com/google/ortools/sat/IntVar.java:56
Definition: Domain.java:9
A linear expression interface that can be parsed.
Definition: LinearExpr.java:17
String getShortString()
Returns a short string describing the variable.
Definition: com/google/ortools/sat/IntVar.java:74