Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.sat.IntVar Class Reference
Inheritance diagram for com.google.ortools.sat.IntVar:
com.google.ortools.sat.LinearArgument com.google.ortools.sat.LinearArgument com.google.ortools.sat.BoolVar com.google.ortools.sat.BoolVar

Public Member Functions

String getName ()
 
int getIndex ()
 
IntegerVariableProto.Builder getBuilder ()
 
LinearExpr build ()
 LinearArgument interface.
 
String displayBounds ()
 
Domain getDomain ()
 
String toString ()
 
String getName ()
 
int getIndex ()
 
IntegerVariableProto.Builder getBuilder ()
 
LinearExpr build ()
 LinearArgument interface.
 
String displayBounds ()
 
Domain getDomain ()
 
String toString ()
 
- Public Member Functions inherited from com.google.ortools.sat.LinearArgument

Protected Attributes

final CpModelProto.Builder modelBuilder
 
final int variableIndex
 
final IntegerVariableProto.Builder varBuilder
 

Detailed Description

An integer variable.

Definition at line 21 of file IntVar.java.

Member Function Documentation

◆ build() [1/2]

LinearExpr com.google.ortools.sat.IntVar.build ( )

LinearArgument interface.

Implements com.google.ortools.sat.LinearArgument.

Definition at line 55 of file IntVar.java.

◆ build() [2/2]

LinearExpr com.google.ortools.sat.IntVar.build ( )

LinearArgument interface.

Implements com.google.ortools.sat.LinearArgument.

Definition at line 55 of file IntVar.java.

◆ displayBounds() [1/2]

String com.google.ortools.sat.IntVar.displayBounds ( )

Returns the domain as a string without the enclosing [].

Definition at line 60 of file IntVar.java.

◆ displayBounds() [2/2]

String com.google.ortools.sat.IntVar.displayBounds ( )

Returns the domain as a string without the enclosing [].

Definition at line 60 of file IntVar.java.

◆ getBuilder() [1/2]

IntegerVariableProto.Builder com.google.ortools.sat.IntVar.getBuilder ( )

Returns the variable protobuf builder.

Definition at line 49 of file IntVar.java.

◆ getBuilder() [2/2]

IntegerVariableProto.Builder com.google.ortools.sat.IntVar.getBuilder ( )

Returns the variable protobuf builder.

Definition at line 49 of file IntVar.java.

◆ getDomain() [1/2]

Domain com.google.ortools.sat.IntVar.getDomain ( )

Returns the domain of the variable.

Definition at line 76 of file IntVar.java.

◆ getDomain() [2/2]

Domain com.google.ortools.sat.IntVar.getDomain ( )

Returns the domain of the variable.

Definition at line 76 of file IntVar.java.

◆ getIndex() [1/2]

int com.google.ortools.sat.IntVar.getIndex ( )

Returns the index of the variable in the underlying CpModelProto.

Definition at line 44 of file IntVar.java.

◆ getIndex() [2/2]

int com.google.ortools.sat.IntVar.getIndex ( )

Returns the index of the variable in the underlying CpModelProto.

Definition at line 44 of file IntVar.java.

◆ getName() [1/2]

String com.google.ortools.sat.IntVar.getName ( )

Returns the name of the variable given upon creation.

Definition at line 39 of file IntVar.java.

◆ getName() [2/2]

String com.google.ortools.sat.IntVar.getName ( )

Returns the name of the variable given upon creation.

Definition at line 39 of file IntVar.java.

◆ toString() [1/2]

String com.google.ortools.sat.IntVar.toString ( )

Reimplemented in com.google.ortools.sat.BoolVar, and com.google.ortools.sat.BoolVar.

Definition at line 81 of file IntVar.java.

◆ toString() [2/2]

String com.google.ortools.sat.IntVar.toString ( )

Reimplemented in com.google.ortools.sat.BoolVar, and com.google.ortools.sat.BoolVar.

Definition at line 81 of file IntVar.java.

Member Data Documentation

◆ modelBuilder

final CpModelProto Builder com.google.ortools.sat.IntVar.modelBuilder
protected

Definition at line 93 of file IntVar.java.

◆ varBuilder

final IntegerVariableProto Builder com.google.ortools.sat.IntVar.varBuilder
protected

Definition at line 95 of file IntVar.java.

◆ variableIndex

final int com.google.ortools.sat.IntVar.variableIndex
protected

Definition at line 94 of file IntVar.java.


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