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

Public Member Functions

int getIndex ()
 
LinearExpr build ()
 LinearArgument interface.
 
double getLowerBound ()
 
void setLowerBound (double lowerBound)
 
double getUpperBound ()
 
void setUpperBound (double upperBound)
 
boolean getIntegrality ()
 
void setIntegrality (boolean isIntegral)
 
double getObjectiveCoefficient ()
 
void setObjectiveCoefficient (double objectiveCoefficient)
 
String getName ()
 
void setName (String name)
 
String toString ()
 
int getIndex ()
 
LinearExpr build ()
 LinearArgument interface.
 
double getLowerBound ()
 
void setLowerBound (double lowerBound)
 
double getUpperBound ()
 
void setUpperBound (double upperBound)
 
boolean getIntegrality ()
 
void setIntegrality (boolean isIntegral)
 
double getObjectiveCoefficient ()
 
void setObjectiveCoefficient (double objectiveCoefficient)
 
String getName ()
 
void setName (String name)
 
String toString ()
 
- Public Member Functions inherited from com.google.ortools.modelbuilder.LinearArgument

Protected Attributes

final ModelBuilderHelper helper
 
final int index
 

Detailed Description

An integer variable.

Definition at line 17 of file Variable.java.

Member Function Documentation

◆ build() [1/2]

LinearExpr com.google.ortools.modelbuilder.Variable.build ( )

LinearArgument interface.

Implements com.google.ortools.modelbuilder.LinearArgument.

Definition at line 39 of file Variable.java.

◆ build() [2/2]

LinearExpr com.google.ortools.modelbuilder.Variable.build ( )

LinearArgument interface.

Implements com.google.ortools.modelbuilder.LinearArgument.

Definition at line 39 of file Variable.java.

◆ getIndex() [1/2]

int com.google.ortools.modelbuilder.Variable.getIndex ( )

Returns the index of the variable in the underlying ModelBuilderHelper.

Definition at line 33 of file Variable.java.

◆ getIndex() [2/2]

int com.google.ortools.modelbuilder.Variable.getIndex ( )

Returns the index of the variable in the underlying ModelBuilderHelper.

Definition at line 33 of file Variable.java.

◆ getIntegrality() [1/2]

boolean com.google.ortools.modelbuilder.Variable.getIntegrality ( )

Returns whether the variable is integral.

Definition at line 64 of file Variable.java.

◆ getIntegrality() [2/2]

boolean com.google.ortools.modelbuilder.Variable.getIntegrality ( )

Returns whether the variable is integral.

Definition at line 64 of file Variable.java.

◆ getLowerBound() [1/2]

double com.google.ortools.modelbuilder.Variable.getLowerBound ( )

Returns the lower bound of the variable.

Definition at line 44 of file Variable.java.

◆ getLowerBound() [2/2]

double com.google.ortools.modelbuilder.Variable.getLowerBound ( )

Returns the lower bound of the variable.

Definition at line 44 of file Variable.java.

◆ getName() [1/2]

String com.google.ortools.modelbuilder.Variable.getName ( )

Returns the name of the variable given upon creation.

Definition at line 84 of file Variable.java.

◆ getName() [2/2]

String com.google.ortools.modelbuilder.Variable.getName ( )

Returns the name of the variable given upon creation.

Definition at line 84 of file Variable.java.

◆ getObjectiveCoefficient() [1/2]

double com.google.ortools.modelbuilder.Variable.getObjectiveCoefficient ( )

Returns the objective coefficient of the variable.

Definition at line 74 of file Variable.java.

◆ getObjectiveCoefficient() [2/2]

double com.google.ortools.modelbuilder.Variable.getObjectiveCoefficient ( )

Returns the objective coefficient of the variable.

Definition at line 74 of file Variable.java.

◆ getUpperBound() [1/2]

double com.google.ortools.modelbuilder.Variable.getUpperBound ( )

Returns the upper bound of the variable.

Definition at line 54 of file Variable.java.

◆ getUpperBound() [2/2]

double com.google.ortools.modelbuilder.Variable.getUpperBound ( )

Returns the upper bound of the variable.

Definition at line 54 of file Variable.java.

◆ setIntegrality() [1/2]

void com.google.ortools.modelbuilder.Variable.setIntegrality ( boolean isIntegral)

Sets the integrality of the variable.

Definition at line 69 of file Variable.java.

◆ setIntegrality() [2/2]

void com.google.ortools.modelbuilder.Variable.setIntegrality ( boolean isIntegral)

Sets the integrality of the variable.

Definition at line 69 of file Variable.java.

◆ setLowerBound() [1/2]

void com.google.ortools.modelbuilder.Variable.setLowerBound ( double lowerBound)

Sets the lower bound of the variable.

Definition at line 49 of file Variable.java.

◆ setLowerBound() [2/2]

void com.google.ortools.modelbuilder.Variable.setLowerBound ( double lowerBound)

Sets the lower bound of the variable.

Definition at line 49 of file Variable.java.

◆ setName() [1/2]

void com.google.ortools.modelbuilder.Variable.setName ( String name)

Definition at line 88 of file Variable.java.

◆ setName() [2/2]

void com.google.ortools.modelbuilder.Variable.setName ( String name)

Definition at line 88 of file Variable.java.

◆ setObjectiveCoefficient() [1/2]

void com.google.ortools.modelbuilder.Variable.setObjectiveCoefficient ( double objectiveCoefficient)

Sets the objective coefficient of the variable in the objective.

Definition at line 79 of file Variable.java.

◆ setObjectiveCoefficient() [2/2]

void com.google.ortools.modelbuilder.Variable.setObjectiveCoefficient ( double objectiveCoefficient)

Sets the objective coefficient of the variable in the objective.

Definition at line 79 of file Variable.java.

◆ setUpperBound() [1/2]

void com.google.ortools.modelbuilder.Variable.setUpperBound ( double upperBound)

Sets the upper bound of the variable.

Definition at line 59 of file Variable.java.

◆ setUpperBound() [2/2]

void com.google.ortools.modelbuilder.Variable.setUpperBound ( double upperBound)

Sets the upper bound of the variable.

Definition at line 59 of file Variable.java.

◆ toString() [1/2]

String com.google.ortools.modelbuilder.Variable.toString ( )

Definition at line 93 of file Variable.java.

◆ toString() [2/2]

String com.google.ortools.modelbuilder.Variable.toString ( )

Definition at line 93 of file Variable.java.

Member Data Documentation

◆ helper

final ModelBuilderHelper com.google.ortools.modelbuilder.Variable.helper
protected

Definition at line 105 of file Variable.java.

◆ index

final int com.google.ortools.modelbuilder.Variable.index
protected

Definition at line 106 of file Variable.java.


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