Learn R Programming

rLindo (version 8.0.1)

rLSaddDiscreteIndep: Add a new discrete independent stochastic parameter to the SP model.

Description

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

Usage

rLSaddDiscreteIndep(model,iRow,jCol,iStv,nRealizations, padProbs,padVals,nModifyRule)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
iRow
Row index of the stochastic parameter.
jCol
Column index of the stochastic parameter.
iStv
Index of stochastic parameter in the instruction list.
nRealizations
Number of all possible realizations for the specified stochastic parameter.
padProbs
A double array containing probabilities associated with the realizations of the stochastic parameter.
padVals
A double array containing values associated with the probabilities.
nModifyRule
A flag indicating whether stochastic parameters update the core model by adding or replacing.

Value

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

References

LINDO SYSTEMS home page at www.lindo.com