Var.get()
Get attribute value of the variable. Support “Value”, “RedCost”, “LB”, “UB”, and “Obj” attributes.
Synopsis
double get(String attr)
Arguments
attr
: attribute name.Return
attribute value.
Var.getBasis()
Get basis status of the variable.
Synopsis
int getBasis()
Return
Basis status.
Var.getIdx()
Get index of the variable.
Synopsis
int getIdx()
Return
variable index.
Var.getLowerIIS()
Get IIS status for lower bound of the variable.
Synopsis
int getLowerIIS()
Return
IIS status.
Var.getName()
Get name of the variable.
Synopsis
String getName()
Return
variable name.
Var.getType()
Get type of the variable.
Synopsis
char getType()
Return
variable type.
Var.getUpperIIS()
Get IIS status for upper bound of the variable.
Synopsis
int getUpperIIS()
Return
IIS status.
Var.remove()
Remove variable from model.
Synopsis
void remove()
Var.set()
Set attribute value of the variable. Support “LB”, “UB” and “Obj” attributes.
Synopsis
void set(String attr, double val)
Arguments
attr
: attribute name.
val
: new value.
Var.setName()
Set name of the variable.
Synopsis
void setName(String name)
Arguments
name
: variable name.
Var.setType()
Set type of the variable.
Synopsis
void setType(char vtype)
Arguments
vtype
: variable type.