Learn R Programming

rLindo (version 8.0.1)

rLSgetDiscreteIndep: Get the stochastic data for the (independent) discrete stochastic parameter at the specified event index.

Description

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

Usage

rLSgetDiscreteIndep(model,iEvent)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
iEvent
Index of the discrete independent event.

Value

An R list object with components:
ErrorCode
Zero if successful, nonzero otherwise.
nDistType
Distribution type of the event.
iStage
Stage index of the discrete-independent event.
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 stochastic parameter.
padProbs
A double array containing the probabilities associated with the realizations of the stochastic parameter.
padVals
A double array containing the values associated with the realizations of the stochastic parameter.
iModifyRule
A flag indicating whether stochastic parameters update the core model by adding or replacing.

References

LINDO SYSTEMS home page at www.lindo.com