Initializing help system before first use

getvarorder

getvarorder


Purpose
Get the internal order number of a decision variable.
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