Description Usage Arguments Value References See Also
R interface function for LINDO API function LSaddVariables
. For more information,
please refer to LINDO API User Manual.
1 2 3 | rLSaddVariables(model,nNumaddvars,pszVarTypes,paszVarNames = NULL,
paiAcols,panAcols = NULL,padAcoef,paiArows,padC,
padL = NULL,padU = NULL)
|
model |
A LINDO API model object, returned by |
nNumaddvars |
Number of variables to append to the model. |
pszVarTypes |
A character array containing the types of each variable to be added to the model. |
paszVarNames |
A string array containing the names of each new variable. |
paiAcols |
An integer array containing the index of the first nonzero element in each new column. |
panAcols |
An integer array containing the length of each column. |
padAcoef |
A double array containing the nonzero coefficients of the new columns. |
paiArows |
An integer array containing the row indices of the nonzeros in the new columns. |
padC |
A double array containing the objective coefficients for each new variable. |
padL |
A double array containing the lower bound of each new variable. |
padU |
A double array containing the upper bound of each new variable. |
An R list object with components:
ErrorCode |
Zero if successful, nonzero otherwise. |
LINDO SYSTEMS home page at www.lindo.com
rLSloadLPData
rLSaddConstraints
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.