rLSaddVariables: Add variables to a given model.

Description Usage Arguments Value References See Also

View source: R/rLindo.R

Description

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

Usage

1
2
3
  rLSaddVariables(model,nNumaddvars,pszVarTypes,paszVarNames = NULL,
                  paiAcols,panAcols = NULL,padAcoef,paiArows,padC,
                  padL = NULL,padU = NULL)

Arguments

model

A LINDO API model object, returned by rLScreateModel.

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.

Value

An R list object with components:

ErrorCode

Zero if successful, nonzero otherwise.

References

LINDO SYSTEMS home page at www.lindo.com

See Also

rLSloadLPData rLSaddConstraints


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