public interface IloNumVar extends IloNumExpr, IloAddable
Objects implementing this interface are used to represent modeling variables in IBM® ILOG® Concert Technology. A modeling variable is characterized by its lower and upper bounds as well as by its type. Possible types are:
IloNumVarType.FloatIloNumVarType.IntIloNumVarType.BoolThe 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.
IloNumVarType,
IloIntVar| Modifier and Type | Method and Description |
|---|---|
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. |
IloNumVarType getType() throws IloException
IloNumVar object.IloExceptiondouble getLB()
throws IloException
IloNumVar object.IloExceptiondouble getUB()
throws IloException
IloNumVar object.IloExceptionvoid setLB(double lb)
throws IloException
IloNumVar object.IloExceptionlb - The new lower bound of the variable.void setUB(double ub)
throws IloException
IloNumVar object.IloExceptionub - The new upper bound of the variable.java.lang.String getName()
getName in interface IloAddablevoid setName(java.lang.String name)
setName in interface IloAddablename - The name assigned to the invoking modeling object.
null can be passed as argument to remove an assigned
name from the invoking modeling object.