rLSloadLPData: Load the given LP data into a model structure.

Description Usage Arguments Value References

View source: R/rLindo.R

Description

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

Usage

1
2
rLSloadLPData(model,nCons,nVars,nObjSense,dObjConst,padC,padB,pszConTypes,nAnnz,
              paiAcols,panAcols = NULL,padAcoef,paiArows,padL  = NULL,padU = NULL)

Arguments

model

A LINDO API model object, returned by rLScreateModel.

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.

Value

An R list object with components:

ErrorCode

Zero if successful, nonzero otherwise.

References

LINDO SYSTEMS home page at www.lindo.com


rLindo documentation built on May 1, 2019, 10:11 p.m.