row.add.mode: Row Add Mode

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

Description

Switch to row entry mode.

Usage

1

Arguments

lprec

an lpSolve linear program model object.

state

optional: either "on" or "off". This argument should be provided only to switch row entry mode on or off.

Details

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.

Value

"on" if row entry mode is on in lprec; otherwise "off".

Author(s)

Kjell Konis kjell.konis@me.com

References

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

See Also

add.constraint


lpSolveAPI documentation built on May 2, 2019, 6:50 p.m.