Purpose
Get the name
of a decision variable or constraint of the problem.
Synopsis
function getname(x:mpvar):string
function getname(c:linctr):string
Arguments
x
|
A decision variable used in the problem
|
c
|
A constraint (or SOS) of the problem
|
Return value
Name of the given object.
Further information
This function returns the name of a decision variable or
constraint of the problem that would be used for matrix exportation.
The parameter of this function must be part of the problem — for
instance a hidden constraint cannot be assigned a name.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.