Constraint.Get()
Get attribute value of the constraint. Support “Dual”, “Slack”, “LB”, “UB” attributes.
Synopsis
double Get(string attr)
Arguments
attr
: name of the attribute being queried.Return
attribute value.
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
string 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 attribute value of the constraint. Support “LB” and “UB” attributes.
Synopsis
void Set(string attr, double val)
Arguments
attr
: name of the attribute.
val
: new value.
Constraint.SetName()
Set name for the constraint.
Synopsis
void SetName(string name)
Arguments
name
: the name to set.