delete.column: Delete Column

View source: R/delete.column.R

delete.columnR Documentation

Delete Column

Description

Delete a column from an lpSolve linear program model object.

Usage

delete.column(lprec, columns)

Arguments

lprec

an lpSolve linear program model object.

columns

a numeric vector of unique values from the set {1, ..., n} (where n is the number of decision variables in lprec) specifying which columns should be deleted.

Value

a NULL value is invisibly returned.

Author(s)

Kjell Konis kjell.konis@me.com

References

https://lpsolve.sourceforge.net/5.5/index.htm

Examples

lps.model <- make.lp(4, 0)

x <- c(6,2,4,9)
add.column(lps.model, x)

y <- c(3,1,5)
ind <- c(1,2,4)
add.column(lps.model, y, ind)

delete.column(lps.model, 1)

lpSolveAPI documentation built on Sept. 11, 2024, 9:27 p.m.