Learn R Programming

rLindo (version 8.0.1)

rLSloadSETSData: Load special sets data into a model structure.

Description

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

Usage

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

Arguments

model
A LINDO API model object, returned by rLScreateModel.
nSETS
Number of sets to load.
pszSETStype
A character array containing the type of each set. Valid values for each cone are LS_MIP_SET_CARD, LS_MIP_SET_SOS1, LS_MIP_SET_SOS2, LS_MIP_SET_SOS3.
paiCARDnum
An integer array containing set cardinalities.
paiSETSbegcol
An integer array containing the index of the first variable in each set.
paiSETScols
An integer array containing the indices of variables in each set.

Value

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

References

LINDO SYSTEMS home page at www.lindo.com