QConstraint.Get()
Get attribute value of the quadratic constraint.
Synopsis
double Get(string attr)
Arguments
attr
: name of the attribute being queried.Return
attribute value.
QConstraint.GetIdx()
Get index of the quadratic constraint.
Synopsis
int GetIdx()
Return
the index of the quadratic constraint.
QConstraint.GetName()
Get name of the quadratic constraint.
Synopsis
string GetName()
Return
the name of the quadratic constraint.
QConstraint.GetRhs()
Get rhs of quadratic constraint.
Synopsis
double GetRhs()
Return
rhs of quadratic constraint.
QConstraint.GetSense()
Get rhs of quadratic constraint.
Synopsis
char GetSense()
Return
rhs of quadratic constraint.
QConstraint.Remove()
Remove this constraint from model.
Synopsis
void Remove()
QConstraint.Set()
Set attribute value of the quadratic constraint.
Synopsis
void Set(string attr, double val)
Arguments
attr
: name of the attribute.
val
: new value.
QConstraint.SetName()
Set name of quadratic constraint.
Synopsis
void SetName(string name)
Arguments
name
: the name to set.
QConstraint.SetRhs()
Set rhs of quadratic constraint.
Synopsis
void SetRhs(double rhs)
Arguments
rhs
: rhs of quadratic constraint.
QConstraint.SetSense()
Set sense of quadratic constraint.
Synopsis
void SetSense(char sense)
Arguments
sense
: sense of quadratic constraint.