lpsolve: Solve a linear program using lpSolve.

Description Usage Arguments Value

View source: R/lpsolve.R

Description

Solve a linear program using lpSolve.

Usage

1
2
3
4
5
6
7
8
lpsolve(
  lp,
  timeout = 10,
  presolve = c("rows", "cols"),
  gap = 0,
  verbose = FALSE,
  ...
)

Arguments

lp

an R object that encapsulates the data used to specify a linear program model. This is a list with the following components: constraint, objective, var.type, upper and lower. The last three components are optional and default to NULL.

timeout

either a positive integer value specifying the number of seconds after which a timeout will occur, or zero, then no timeout will occur.

presolve

a character vector specifying presolve steps to be carried out before solving

verbose

either a character string or a TRUE/FALSE value to control the level of reporting. The character string can be: "critical" (hard errors only), "severe" (errors only), "important" (warnings and errors), "normal", "detailed", or "full". TRUE means "normal", FALSE means "neutral".

...

more control parameters to be passed to lpSolve

Value

Updated lp object


yuehmeir2/myFormAssembler documentation built on June 9, 2021, 3:42 a.m.