R/row.add.mode.R

Defines functions row.add.mode

Documented in row.add.mode

row.add.mode <- function(lprec, state)
{
  if(!missing(state)) {
    state <- match.arg(state, choices = c("off", "on")) == "on"
    .Call(RlpSolve_set_add_rowmode, lprec, as.logical(state))
  }

  ifelse(.Call(RlpSolve_is_add_rowmode, lprec), "on", "off")
}

Try the lpSolveAPI package in your browser

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

lpSolveAPI documentation built on Sept. 3, 2023, 5:07 p.m.