Class IntVar
java.lang.Object
com.google.ortools.sat.IntVar
- All Implemented Interfaces:
LinearArgument
- Direct Known Subclasses:
BoolVar
An integer variable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CpModelProto.Builder
protected final IntegerVariableProto.Builder
protected final int
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a linear expression.Returns the domain as a string without the enclosing [].Returns the variable protobuf builder.Returns the domain of the variable.int
getIndex()
Returns the index of the variable in the underlying CpModelProto.getName()
Returns the name of the variable given upon creation.toString()
-
Field Details
-
modelBuilder
-
variableIndex
protected final int variableIndex -
varBuilder
-
-
Method Details
-
getName
Returns the name of the variable given upon creation. -
getIndex
public int getIndex()Returns the index of the variable in the underlying CpModelProto. -
getBuilder
Returns the variable protobuf builder. -
build
Description copied from interface:LinearArgument
Builds a linear expression.- Specified by:
build
in interfaceLinearArgument
-
displayBounds
Returns the domain as a string without the enclosing []. -
getDomain
Returns the domain of the variable. -
toString
-