row.add.mode | R Documentation |
Switch to row entry mode.
row.add.mode(lprec, state)
lprec |
an lpSolve linear program model object. |
state |
optional: either |
The best way to build a linear program model in lpSolve is column by column, hence row entry mode is turned off by default. If the model must be built by adding constraints, the performance of the add.constraint
function can be greatly improved by turning row entry mode on.
There are several caveats associated with row entry mode. First, only use this function on lpSolve linear program models created by make.lp
. Do not use this function on models read from a file. Second, add the objective function before adding the constraints. Third, do not call any other API functions while in row entry mode; no other data matrix access is allowed. After adding all the contraints, turn row entry mode off. Once turned off, you cannot switch back to row entry mode.
"on"
if row entry mode is on in lprec
; otherwise "off"
.
Kjell Konis kjell.konis@me.com
https://lpsolve.sourceforge.net/5.5/index.htm
add.constraint
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.