50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

rLindo (version 8.0.1)

rLSloadCorrelationMatrix: Load a correlation matrix to be used by the sampling scheme in stochastic programming.

Description

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

Usage

rLSloadCorrelationMatrix(model,nDim,nCorrType,nQCnnz,paiQCcols1, paiQCcols2,padQCcoef)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
nDim
Number of stochastic parameters involved in the correlation structure.
nCorrType
Correlation type. Possible values are:
  • LS_CORR_PEARSON
  • LS_CORR_SPEARMAN
  • LS_CORR_KENDALL

nQCnnz
Number of nonzero correlation coefficients.
paiQCcols1
An integer array containing the first index of variable the correlation term belongs to.
paiQCcols2
An integer array containing the second index of variable the correlation term belongs to.
padQCcoef
A double array containing the correlation terms.

Value

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

References

LINDO SYSTEMS home page at www.lindo.com