R/make.lp.q

make.lp <- function(nrow = 0, ncol = 0, verbose = "neutral")
{
  ch <- c("neutral", "critical", "severe", "important", "normal", "detailed",
          "full")
  verbose <- match.arg(verbose, choices = ch)
  verbose <- match(verbose, table = ch) - 1

  lprec <- .Call(RlpSolve_make_lp, as.integer(nrow), as.integer(ncol))

  if(!is.null(lprec)) {
    .Call(RlpSolve_set_verbose, lprec, as.integer(verbose))
    reg.finalizer(lprec, delete.lp, TRUE)
    oldClass(lprec) <- "lpExtPtr"
  }

  lprec
}

Try the lpSolveAPI package in your browser

Any scripts or data that you put into this service are public.

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