rLSaddDiscreteBlocks: Add a new discrete stochastic block to the SP model.

Description Usage Arguments Value References

View source: R/rLindo.R

Description

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

Usage

1
2
  rLSaddDiscreteBlocks(model,iStage,nRealzBlock,padProb,
                       pakStart,paiRows,paiCols,paiStvs,padVals,nModifyRule)

Arguments

model

A LINDO API model object, returned by rLScreateModel.

iStage

The stage of the stochastic block.

nRealzBlock

Number of discrete events in the block.

padProb

An double array containing the event probabilities.

pakStart

An integer array containing the starting positions of events in the sparse matrix or instruction list.

paiRows

An integer array containing row indices of stochastic parameters.

paiCols

An integer array containing column indices of stochastic parameters.

paiStvs

An integer array containing stochastic parameters in the instruction list.

padVals

A double array containing stochastic values associated with the stochastic parameters listed in paiStvs or (paiArows,paiAcols).

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


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