Learn R Programming

rLindo (version 8.0.1)

rLSgetLPConstraintDatai: Retrieve the formulation data for a specified constraint in a linear or mixed integer linear program.

Description

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

Usage

rLSgetLPConstraintDatai(model,iCon)

Arguments

model
A LINDO API model object, returned by rLScreateModel.
iCon
Index of the constraint you wish to receive information on.

Value

An R list object with components:
ErrorCode
Zero if successful, nonzero otherwise.
pchConType
Type of the constraint.
pdB
Right-hand side value of the constraint.
pnNnz
Number of nonzero coefficients in the constraint.
paiVar
An integer array containing the indices of the variables with nonzero coefficients in the constraint.
padAcoef
A double array containing the constraint's nonzero coefficients.

References

LINDO SYSTEMS home page at www.lindo.com

See Also

rLSgetLPVariableDataj