Learn R Programming

rLindo (version 8.0.1)

rLSaddSETS: Add sets to a given model.

Description

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

Usage

rLSaddSETS(model,nSETS,pszSETStype,paiCARDnum,paiSETSbegcol,paiSETScols)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
nSETS
Number of sets to append to the model.
pszSETStype
A character array containing the type of each set to be added to the model.
paiCARDnum
An integer array containing the cardinalities of the sets to be added.
paiSETSbegcol
An integer array containing the index of the first variable in each new set.
paiSETScols
An integer array containing the indices of the variables in the new sets.

Value

An R list object with components:
ErrorCode
Zero if successful, nonzero otherwise.

References

LINDO SYSTEMS home page at www.lindo.com

See Also

rLSloadSETSData