8.7.6. MDOQConstr¶
- MDOQConstr¶
Represent a quadratic constraint in MindOpt application.
Properties
Retrieve the index of this quadratic constraint
Methods
Retrieve a quadratic constraint-owned double attribute value by its name
Retrieve a quadratic constraint-owned string attribute value by its name
Test if this quadratic constraint is the same as another
Set the value of a quadratic constraint-owned double attribute
Set the value of a quadratic constraint-owned string attribute
Retrieve the string representation of quadratic constraint
- double Get(MDO.DoubleAttr attr)¶
Retrieve a quadratic constraint-owned double attribute value by its name.
- Parameters
MDO.DoubleAttr attr – The attribute name.
- Returns
The attribute value.
- string Get(MDO.StringAttr attr)¶
Retrieve a quadratic constraint-owned string attribute value by its name.
- Parameters
MDO.StringAttr attr – The attribute name.
- Returns
The attribute value.
- bool SameAs(MDOConstr other)¶
Test if this quadratic constraint is the same as another.
- Parameters
MDOConstr other – The quadratic constraint to be compared.
- Returns
True if these two are the same
- void Set(MDO.DoubleAttr attr, double value)¶
Set the value of a quadratic constraint-owned double attribute.
- Parameters
MDO.DoubleAttr attr – The attribute name.
double value – The new value to be set.
- void Set(MDO.StringAttr attr, string value)¶
Set the value of a quadratic constraint-owned string attribute.
- Parameters
MDO.StringAttr attr – The attribute name.
string value – The new value to be set.
- string ToString()¶
Retrieve the string representation of quadratic constraint.
- Returns
The string representation of quadratic constraint.