8.7.10. MDOPsdVar¶
- MDOPsdVar¶
Represent a PSD variable in MindOpt application
Properties
Retrieve the index of this PSD variable
- Index¶
Retrieve the index of this PSD variable
Methods
Retrieve the int attribute value owned by a PSD variable by its name
Retrieve a string attribute value owned by a PSD variable by its name
Retrieve the matrix attribute value owned by the PSD variable by its name
Test whether this PSD variable is the same as another
Set the value of the int attribute owned by the PSD variable
Set the value of the string attribute owned by the PSD variable
Set the value of the matrix attribute owned by the PSD variable
Convert the current PSD variable to a string
- int Get(MDO.IntAttr attr)¶
Retrieve the int attribute value owned by a PSD variable by its name
- Parameters
MDO.IntAttr attr – Attribute name
- Returns
Attribute value
- string Get(MDO.StringAttr attr)¶
Retrieve a string attribute value owned by a PSD variable by its name
- Parameters
MDO.StringAttr attr – Attribute name
- Returns
Attribute value
- MDOMatrix Get(MDO.MatAttr attr)¶
Retrieve the matrix attribute value owned by the PSD variable by its name
- Parameters
MDO.MatAttr attr – Attribute name
- Returns
Attribute value
- bool SameAs(MDOPsdVar v2)¶
Test whether this PSD variable is the same as another
- Parameters
MDOPsdVar v2 – PSD variable to compare
- Returns
True if the two are the same
- void Set(MDO.IntAttr attr, int value)¶
Set the value of the int attribute owned by the PSD variable.
- Parameters
MDO.IntAttr attr – Attribute name
int value – The new value to be set.
- void Set(MDO.StringAttr attr, string value)¶
Set the value of the string attribute owned by the PSD variable.
- Parameters
MDO.StringAttr attr – Attribute name
string value – The new value to be set.
- void Set(MDO.MatAttr attr, MDOMatrix value)¶
Set the value of the matrix attribute owned by the PSD variable.
- Parameters
MDO.MatAttr attr – Attribute name
MDOMatrix value – The new value to be set.
- string ToString()¶
Convert the current PSD variable to a string.
- Returns
The string format of the PSD variable.