Initializing help system before first use

problem.getIndexFromName

problem.getIndexFromName


Purpose
Returns the index for a specified row or column name.
Synopsis
ind = problem.getIndexFromName (type, name)
Arguments
type 
if a row index is required;
if a column index is required.
name 
String containing name of the item sought.
Example
The following example retrieves the index of column " xnew":
x = xpress.var (name = 'xnew')
[...]
print ("variable's index: ", p.getIndexFromName ('xnew'))
Related topics