8.9.6. MDOQConstr¶
- MDOQConstr¶
Represent a quadratic constraint in MindOpt application.
Methods
Retrieve a quadratic constraint-owned double attribute value by its name
Retrieve a quadratic constraint-owned string attribute value by its name
Retrieve index for this quadratic constraint
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
- 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.
- int index()¶
Retrieve index for this quadratic constraint.
- Returns
The quadratic constraint index.
- bool sameAs(MDOQConstr c2)¶
Test if this quadratic constraint is the same as another.
- Parameters
MDOQConstr c2 – 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.