Learn R Programming

rLindo (version 8.0.1)

rLSfindBlockStructure: Examine the nonzero structure of the constraint matrix and tries to identify block structures in the model.

Description

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

Usage

rLSfindBlockStructure(model,nBlock,nType)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
nBlock
Number of blocks to decompose the coefficient matrix into.
nType
Type of decomposition requested. The possible values are identified with the following macros:
  • LS_LINK_BLOCKS_NONETry total decomposition (no linking rows or columns).
  • LS_LINK_BLOCKS_COLSThe decomposed model will have dual angular structure (linking columns).
  • LS_LINK_BLOCKS_ROWSThe decomposed model will have block angular structure (linking rows).
  • LS_LINK_BLOCKS_BOTHThe decomposed model will have both dual and block angular structure (linking rows and columns).
  • LS_LINK_BLOCKS_FREESolver decides which type of decomposition to use.

Value

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

Details

If neither linking rows nor linking columns exist, then the model is called 'totally decomposable'. Unless total decomposition is requested, the user should specify as an input the number of blocks to decompose the matrix into.

References

LINDO SYSTEMS home page at www.lindo.com