Download LINDO API USER MANUAL
Transcript
FUNCTION DEFINITIONS 169 Input Arguments: Name Description pModel A reference to an instance of LSmodel object. iRow An integer specifying the row index of the stochastic parameter. It should be ignored if iStv will be specified. jCol An integer specifying the column index of the stochastic parameter. It should be ignored if iStv will be specified. iStv An integer specifying the index of stochastic parameter in the instruction list. It should ignored if (iRow, jCol) is specified. nDistType An integer specifying the parametric distribution type. See the ‘Distributions’ table for possible values. padParams An double vector specifying the parameters of given distribution. nParams An integer specifying the length of padParams . iModifyRule A flag indicating whether stochastic parameters update the core model by adding or replacing. Possible values are: LS_REPLACE LS_ADD LSaddDiscreteBlocks () Description: Adds a new discrete stochastic block to the SP model. The positions of stochastic parameters are specified with either (paiArows,paiAcols) or paiStvs , but not with both. For SP models where core model is described with an instruction list, paiStvs have to be used. Returns: 0 if successful, else one of the error codes listed in Appendix A, Error Codes Prototype: int LSaddDiscreteBlocks (pLSmodel pModel, int iStage, int nBlockEvents, double * padProb, int * pakEvent, int * paiArows, int * paiAcols, int * paiStvs, double * padVals, int iModifyRule)