Var::Get()

Get information of the variable. Support informations of “Value”, “RedCost”, “LB”, “UB”, and “Obj”.

Synopsis

double Get(const char *szInfo)

Arguments

szInfo: name of information.

Return

value of information

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” and “Obj”.

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.