Constraint::ComputeShadowPriceRange()

Compute the shadow price range for a given constraint.

Synopsis

void ComputeShadowPriceRange(

int ifRhs,

double *pLower,

double *pUpper)

Arguments

ifRhs: for range constraint, whether to use RHS for computing shadow price.

pLower: output lower bound of the shadow price.

pUpper: output upper bound of the shadow price.

Constraint::Get()

Get information value of the constraint. Support information of “Dual”, “Slack”, “DualFarkas”, “LB” and “UB”.

Synopsis

double Get(const char *szInfo)

Arguments

szInfo: name of the information being queried.

Return

value of information.

Constraint::GetBasis()

Get basis status of this constraint.

Synopsis

int GetBasis()

Return

basis status.

Constraint::GetIdx()

Get index of the constraint.

Synopsis

int GetIdx()

Return

the index of the constraint.

Constraint::GetLowerIIS()

Get IIS status for lower bound of the constraint.

Synopsis

int GetLowerIIS()

Return

IIS status.

Constraint::GetName()

Get name of the constraint.

Synopsis

const char *GetName()

Return

the name of the constraint.

Constraint::GetUpperIIS()

Get IIS status for upper bound of the constraint.

Synopsis

int GetUpperIIS()

Return

IIS status.

Constraint::Remove()

Remove this constraint from model.

Synopsis

void Remove()

Constraint::Set()

Set information value of the constraint. Support information of “LB” and “UB”.

Synopsis

void Set(const char *szInfo, double value)

Arguments

szInfo: name of the information.

value: new information value.

Constraint::SetName()

Set name for the constraint.

Synopsis

void SetName(const char *szName)

Arguments

szName: the name to set.