getvarnum
| getvarnum | 
  Purpose
 
  
  Synopsis
 
 int getvarnum(XPRMcontext ctx, XPRMmpvar var);
 
  Arguments
 
 | 
     ctx 
     | 
     Mosel's execution context
     | 
| 
     var 
     | 
     Reference to a variable
     | 
  Return value
 
 
 The column number (
 ≥ 0) of the decision variable, or a negative value.
 
  Further information
 
 
 This function returns the column number of a decision variable. A negative value is returned if no problem is available or if the variable does not belong to the current problem.
 
 
  Related topics
 
  
