getvarorder
getvarorder |
Purpose
Synopsis
int getvarorder(XPRMcontext ctx,XPRMmpvar var);
Arguments
ctx
|
Mosel's execution context
|
var
|
A reference to a decision variable or
NULL
|
Return value
Internal order number or the maximum number of variables if
var is
NULL.
Further information
1. At its creation a variable is assigned an order number. This order number never changes and it is used as the sorting criterion when generating the matrix.
2. If the argument
var is
NULL, the returned value corresponds to the number of variables created so far.
Related topics