Learn R Programming

clpAPI (version 1.3.1)

addColsCLP: Add Columns

Description

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

Usage

addColsCLP(lp, ncols, lb, ub, obj, colst, rows, val)

Arguments

lp

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

ncols

Number of columns to add.

lb

Lower bounds of the new columns.

ub

Upper bounds of the new columns.

obj

Objective coeficients of the new columns.

colst

Vector containing the starting indices of new rows (Arguments rows and val must be in column major order). The first element of colst must be 0, the last element must be length(val)+1.

rows

Row indices of the non zero elements in the new columns.

val

Numerical values of the new non zero elements.

Value

NULL

Details

Interface to the C function addRows which calls the COIN-OR Clp function Clp_addRows.

References

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