Java Reference

Java Reference

Detailed Description

Wrapper around a linear constraint stored in the ModelBuilderHelper instance.

Definition at line 17 of file LinearConstraint.java.

Public Member Functions

 LinearConstraint (ModelBuilderHelper helper)
 
int getIndex ()
 Returns the index of the constraint in the model. More...
 
ModelBuilderHelper getHelper ()
 Returns the constraint builder. More...
 
double getLowerBound ()
 Returns the lower bound of the variable. More...
 
void setLowerBound (double lb)
 Returns the lower bound of the variable. More...
 
double getUpperBound ()
 Returns the upper bound of the variable. More...
 
void setUpperBound (double ub)
 Returns the upper bound of the variable. More...
 
String getName ()
 Returns the name of the variable given upon creation. More...
 
void setName (String name)
 
void addTerm (Variable var, double coeff)
 
LinearConstraint withName (String name)
 Inline setter. More...
 

Constructor & Destructor Documentation

◆ LinearConstraint()

LinearConstraint ( ModelBuilderHelper  helper)

Definition at line 18 of file LinearConstraint.java.

Member Function Documentation

◆ addTerm()

void addTerm ( Variable  var,
double  coeff 
)

Definition at line 64 of file LinearConstraint.java.

◆ getHelper()

ModelBuilderHelper getHelper ( )

Returns the constraint builder.

Definition at line 29 of file LinearConstraint.java.

◆ getIndex()

int getIndex ( )

Returns the index of the constraint in the model.

Definition at line 24 of file LinearConstraint.java.

◆ getLowerBound()

double getLowerBound ( )

Returns the lower bound of the variable.

Definition at line 34 of file LinearConstraint.java.

◆ getName()

String getName ( )

Returns the name of the variable given upon creation.

Definition at line 54 of file LinearConstraint.java.

◆ getUpperBound()

double getUpperBound ( )

Returns the upper bound of the variable.

Definition at line 44 of file LinearConstraint.java.

◆ setLowerBound()

void setLowerBound ( double  lb)

Returns the lower bound of the variable.

Definition at line 39 of file LinearConstraint.java.

◆ setName()

void setName ( String  name)

Definition at line 59 of file LinearConstraint.java.

◆ setUpperBound()

void setUpperBound ( double  ub)

Returns the upper bound of the variable.

Definition at line 49 of file LinearConstraint.java.

◆ withName()

LinearConstraint withName ( String  name)

Inline setter.

Definition at line 69 of file LinearConstraint.java.


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