Learn R Programming

glpkAPI (version 1.3.0)

getRowsTypesGLPK: Retrieve Types of Specified Constraints (Rows)

Description

This is an advanced version of getRowTypeGLPK. Here, i can be an integer vector.

Usage

getRowsTypesGLPK(lp, i)

Arguments

lp

An object of class "'>glpkPtr" as returned by initProbGLPK. This is basically a pointer to a GLPK problem object.

i

Vector of row numbers.

Value

A numeric vector of the same length as i giving the constraint type of the specified rows.

Details

Interface to the C function getRowsTypes which calls the GLPK function glp_get_row_type.

References

Based on the package glpk by Lopaka Lee.

The GNU GLPK home page at http://www.gnu.org/software/glpk/glpk.html.

See Also

glpkConstants, section ‘type of auxiliary/structural variable’.