Description Usage Arguments Value References
R interface function for LINDO API function LSloadLPData
. For more information,
please refer to LINDO API User Manual.
1 2 | rLSloadLPData(model,nCons,nVars,nObjSense,dObjConst,padC,padB,pszConTypes,nAnnz,
paiAcols,panAcols = NULL,padAcoef,paiArows,padL = NULL,padU = NULL)
|
model |
A LINDO API model object, returned by |
nCons |
Number of constraints in the model. |
nVars |
Number of variables in the model. |
nObjSense |
An indicator stating whether the objective is to be maximized or minimized. |
dObjConst |
A constant value to be added to the objective value. |
padC |
A double array containing the objective coefficients. |
padB |
A double array containing the constraint right hand side coefficients. |
pszConTypes |
A character vector containing the type of each constraint. Each constraint is represented by a single byte in the array. Valid values for each constraint are 'L', 'E', 'G', or 'N' for less than or equal to, equal to, greater than or equal to, or neutral, respectively. |
nAnnz |
The number of nonzeros in the constraint matrix. |
paiAcols |
An integer array containing the index of the first nonzero in each column. |
panAcols |
An integer array containing the length of each column. |
padAcoef |
A double array containing the nonzero coefficients of the constraint matrix. |
paiArows |
An integer array containing the row indices of the nonzeros in the constraint matrix. |
padL |
A double array vector containing the lower bound of each variable. |
padU |
A double array vector containing the upper bound of each variable. |
An R list object with components:
ErrorCode |
Zero if successful, nonzero otherwise. |
LINDO SYSTEMS home page at www.lindo.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.