Description Usage Arguments Details Value Author(s) References See Also Examples

Add a column to an lpSolve linear program model object.

1 | ```
add.column(lprec, x, indices)
``` |

`lprec` |
an lpSolve linear program model object. |

`x` |
a numeric vector containing the elements (only the nonzero elements if the |

`indices` |
optional for sparse |

This function adds an additional column to an lpSolve linear program model object. If multiple columns are to be added, performance can be improved by calling `resize.lp`

before adding the columns.

a `NULL`

value is invisibly returned.

Kjell Konis [email protected]

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

1 2 3 | ```
lps.model <- make.lp(4, 0)
add.column(lps.model, c(6,2,4,9))
add.column(lps.model, c(3,1,5), indices = c(1,2,4))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.