rLSaddInstruct: Add instruction lists into a model structure.

Description Usage Arguments Value References See Also

View source: R/rLindo.R

Description

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

Usage

1
2
3
4
rLSaddInstruct(model,nCons,nObjs,nVars,nNumbers,panObjSense,pszConType,
               pszVarType = NULL,panInstruct,nInstruct,paiCons = NULL,
               padNumVal,padVarVal,paiObjBeg,panObjLen,paiConBeg,
               panConLen,padLB = NULL,padUB = NULL)

Arguments

model

A LINDO API model object, returned by rLScreateModel.

nCons

Number of constraints in the model.

nObjs

Number of objectives in the model.

nVars

Number of variables in the model.

nNumbers

Number of real numbers in the model.

panObjSense

An integer array containing the indicator stating whether the objective is to be maximized or minimized. Valid values are LS_MAX or LS_MIN, respectively.

pszConType

A character array 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, great-than-or-equal-to, or neutral, respectively.

pszVarType

A character array containing the type of each variable. Valid values for each variable are 'C', 'B', or 'I', for continuous, binary, or general integer, respectively.

panInstruct

An integer array containing the instruction list.

nInstruct

Number of items in the instruction list.

paiCons

An integer array containing the variable index.

padNumVal

A double array containing the value of each real number in the model.

padVarVal

A double array containing starting values for each variable in the given model.

paiObjBeg

An integer array containing the beginning positions on the instruction list for each objective row.

panObjLen

An integer array containing the length of instruction code (i.e., the number of individual instruction items) for each objective row.

paiConBeg

An integer array containing the beginning positions on the instruction list for each constraint row.

panConLen

An integer array containing the length of instruction code (i.e., the number of individual instruction items) for each constraint row.

padLB

A double array containing the lower bound of each variable.

padUB

A double array 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

See Also

rLSloadInstruct


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