Resize the data structures in an lpSolve linear program model object.
Usage
resize.lp(lprec, nrow, ncol)
Arguments
lprec
an lpSolve linear program model object.
nrow
a single nonnegative integer value specifying the new number of rows for the lpSolve linear program model object.
ncol
a single nonnegative integer value specifying the new number of rows for the lpSolve linear program model object.
Value
a logical value indicating whether the model was successfully resized is invisibly returned.
Details
If the new size of the model is smaller than the size of the current model, the excess rows and/or columns are deleted. If the new size is larger, no change will be immediately apparent. However, the internal structures of lprec will have been adjusted to accommodate the larger model. Efficiency of model building can be improved by calling this function before adding additional columns (for example).