Java Reference

Java Reference

Detailed Description

An integer variable.

Definition at line 17 of file Variable.java.

Public Member Functions

int getIndex ()
 Returns the index of the variable in the underlying ModelBuilderHelper. More...
 
LinearExpr build ()
 Builds a linear expression. More...
 
double getLowerBound ()
 Returns the lower bound of the variable. More...
 
void setLowerBound (double lowerBound)
 Sets the lower bound of the variable. More...
 
double getUpperBound ()
 Returns the upper bound of the variable. More...
 
void setUpperBound (double upperBound)
 Sets the upper bound of the variable. More...
 
boolean getIntegrality ()
 Returns whether the variable is integral. More...
 
void setIntegrality (boolean isIntegral)
 Sets the integrality of the variable. More...
 
double getObjectiveCoefficient ()
 Returns the objective coefficient of the variable. More...
 
void setObjectiveCoefficient (double objectiveCoefficient)
 Sets the objective coefficient of the variable in the objective. More...
 
String getName ()
 Returns the name of the variable given upon creation. More...
 
void setName (String name)
 
String toString ()
 

Protected Attributes

final ModelBuilderHelper helper
 
final int index
 

Member Function Documentation

◆ build()

LinearExpr build ( )

Builds a linear expression.

Implements LinearArgument.

Definition at line 39 of file Variable.java.

◆ getIndex()

int getIndex ( )

Returns the index of the variable in the underlying ModelBuilderHelper.

Definition at line 33 of file Variable.java.

◆ getIntegrality()

boolean getIntegrality ( )

Returns whether the variable is integral.

Definition at line 64 of file Variable.java.

◆ getLowerBound()

double getLowerBound ( )

Returns the lower bound of the variable.

Definition at line 44 of file Variable.java.

◆ getName()

String getName ( )

Returns the name of the variable given upon creation.

Definition at line 84 of file Variable.java.

◆ getObjectiveCoefficient()

double getObjectiveCoefficient ( )

Returns the objective coefficient of the variable.

Definition at line 74 of file Variable.java.

◆ getUpperBound()

double getUpperBound ( )

Returns the upper bound of the variable.

Definition at line 54 of file Variable.java.

◆ setIntegrality()

void setIntegrality ( boolean  isIntegral)

Sets the integrality of the variable.

Definition at line 69 of file Variable.java.

◆ setLowerBound()

void setLowerBound ( double  lowerBound)

Sets the lower bound of the variable.

Definition at line 49 of file Variable.java.

◆ setName()

void setName ( String  name)

Definition at line 88 of file Variable.java.

◆ setObjectiveCoefficient()

void setObjectiveCoefficient ( double  objectiveCoefficient)

Sets the objective coefficient of the variable in the objective.

Definition at line 79 of file Variable.java.

◆ setUpperBound()

void setUpperBound ( double  upperBound)

Sets the upper bound of the variable.

Definition at line 59 of file Variable.java.

◆ toString()

String toString ( )

Definition at line 93 of file Variable.java.

Member Data Documentation

◆ helper

final ModelBuilderHelper helper
protected

Definition at line 105 of file Variable.java.

◆ index

final int index
protected

Definition at line 106 of file Variable.java.


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