Learn R Programming

rLindo (version 8.0.1)

rLSgetVariableIndex: Retrieve the index of a variable, given its name.

Description

R interface function for LINDO API function LSgetVariableIndex. For more information, please refer to LINDO API User Manual.

Usage

rLSgetVariableIndex(model,pszVarName)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
pszVarName
Name of the variable whose index you wish to retrieve.

Value

An R list object with components:
ErrorCode
Zero if successful, nonzero otherwise.
piVar
Index of the variable.

References

LINDO SYSTEMS home page at www.lindo.com

See Also

rLSgetVariableNamej