ilog.concert
Interface IloNumVar

All Superinterfaces:
IloNumExpr
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 ILOG Concert Technology for Java. A modeling variable is characterized by its lower and upper bounds 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.
 ilog.concert.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 ilog.concert.IloNumVarType getType()
                                   throws IloException
Queries the type of the invoking IloNumVar object.

Returns:
The type of the variable.
IloException

getLB

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

Returns:
The lower bound of the variable.
IloException

getUB

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

Returns:
The upper bound of the variable.
IloException

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.
IloException

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.
IloException

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.