Learn R Programming

clpAPI (version 1.3.1)

resizeCLP: Resize a Model

Description

Low level interface function to the COIN-OR Clp function Clp_resize. Consult the COIN-OR Clp documentation for more detailed information.

Usage

resizeCLP(lp, nrows, ncols)

Arguments

lp

An object of class "'>clpPtr" as returned by initProbCLP. This is basically a pointer to a COIN-OR Clp problem object.

nrows

Number of rows.

ncols

Number of columns.

Value

NULL

Details

Interface to the C function resize which calls the COIN-OR Clp function Clp_resize.

The function resize can produce a larger model. If the current number of rows and columns is n and m respectively and you set nrows to i and ncols to j, the new number of rows and columns will be i and j. It is not possible to scale down the model. In order to delete rows or columns, use delRowsCLP or delColsCLP.

References

The COIN-OR Clp home page at https://projects.coin-or.org/Clp

See Also

delRowsCLP and delColsCLP.