rLSaddConstraints: Add constraints to a given model.

Description Usage Arguments Value References See Also

View source: R/rLindo.R

Description

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

Usage

1
2
  rLSaddConstraints(model,nNumaddcons,pszConTypes,paszConNames = NULL,
                    paiArows,padAcoef,paiAcols,padB)

Arguments

model

A LINDO API model object, returned by rLScreateModel.

nNumaddcons

Number of constraints to append.

pszConTypes

A character array containing the type of each constraint to be added to the model.

paszConNames

A string array containing the names of each new constraint.

paiArows

An integer array containing the index of the first nonzero element in each new constraint.

padAcoef

A double array containing the nonzero coefficients of the new constraints.

paiAcols

An integer array containing the column indices of the nonzeros in the new constraints.

padB

A double array containing the right-hand side coefficients for each new constraint.

Value

An R list object with components:

ErrorCode

Zero if successful, nonzero otherwise.

References

LINDO SYSTEMS home page at www.lindo.com

See Also

rLSloadLPData rLSaddVariables


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