|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
IloNumVarType.Float
IloNumVarType.Int
IloNumVarType.Bool
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 |
public ilog.concert.IloNumVarType getType() throws IloException
IloNumVar
object.
IloException
public double getLB() throws IloException
IloNumVar
object.
IloException
public double getUB() throws IloException
IloNumVar
object.
IloException
public void setLB(double lb) throws IloException
IloNumVar
object.
lb
- The new lower bound of the variable.
IloException
public void setUB(double ub) throws IloException
IloNumVar
object.
ub
- The new upper bound of the variable.
IloException
public java.lang.String getName()
public void setName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |