Var::Get()
Get attribute value of the variable. Support “Value”, “RedCost”, “LB”, “UB”, and “Obj” attributes.
Synopsis
double Get(const char *szAttr)
Arguments
szAttr
: attribute name.Return
attribute value
Var::GetIdx()
Get index of the variable.
Synopsis
inline 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
const char *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(const char *szAttr, double value)
Arguments
szAttr
: attribute name.
value
: new value.
Var::SetName()
Set name of the variable.
Synopsis
void SetName(const char *szName)
Arguments
szName
: variable name.
Var::SetType()
Set type of the variable.
Synopsis
void SetType(char type)
Arguments
type
: variable type.