ilog.concert
Interface IloNumVar

All Known Subinterfaces:
IloIntVar, IloSemiContVar

public interface IloNumVar
extends IloNumExpr

This interface defines the API for numerical variables of any type. Objects implementing this interface are used to represent modeling variables in an ILOG Concert Technology application. A modeling variable is characterized by its lower and upper bound as well as by its type. Possible types are:

The bounds of a variable can be changed after the variable has been constructed, but its type remains fixed throughout the lifetime of the variable object.

See Also:
IloNumVarType, IloIntVar

Method Summary
 double getLB()
          Queries the lower bound of the invoking IloNumVar object.
 java.lang.String getName()
          Returns the name of the invoking variable.
 IloNumVarType getType()
          Queries the type of the invoking IloNumVar object.
 double getUB()
          Queries the upper bound of the invoking IloNumVar object.
 void setLB(double lb)
          Sets the lower bound of the invoking IloNumVar object.
 void setName(java.lang.String name)
          Sets the name of the invoking variable.
 void setUB(double ub)
          Sets the upper bound of the invoking IloNumVar object.
 

Method Detail

getType

public IloNumVarType getType()
                      throws IloException
Queries the type of the invoking IloNumVar object.
Returns:
The type of the variable.

getLB

public double getLB()
             throws IloException
Queries the lower bound of the invoking IloNumVar object.
Returns:
The lower bound of the variable.

getUB

public double getUB()
             throws IloException
Queries the upper bound of the invoking IloNumVar object.
Returns:
The upper bound of the variable.

setLB

public void setLB(double lb)
           throws IloException
Sets the lower bound of the invoking IloNumVar object.
Parameters:
lb - The new lower bound of the variable.

setUB

public void setUB(double ub)
           throws IloException
Sets the upper bound of the invoking IloNumVar object.
Parameters:
ub - The new upper bound of the variable.

getName

public java.lang.String getName()
Returns the name of the invoking variable.

setName

public void setName(java.lang.String name)
Sets the name of the invoking variable.