Initializing help system before first use

XPRMgetvarnum

XPRMgetvarnum


Purpose
Get the column number of a decision variable.
Synopsis
int XPRMgetvarnum(XPRMmodel model, XPRMmpvar var);
Arguments
model 
Reference to a model
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 active problem.
Related topics