Var::Get()
Get information of the variable. Support informations of “Value”, “RedCost”, “PrimalRay”, “LB”, “UB”, “Obj” and “BranchFactor”.
Synopsis
double Get(const char *szInfo)Arguments
szInfo: name of information.Return
value of information
Var::GetBasis()
Get basis status of this variable.
Synopsis
int GetBasis()Return
basis status.
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 information value of the variable. Support informations of “LB”, “UB”, “Obj” and “BranchFactor”.
Synopsis
void Set(const char *szInfo, double value)Arguments
szInfo: name of information.
value: new information 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.