R/get.kind.R

Defines functions get.kind

Documented in get.kind

get.kind <- function(lprec, columns = 1:n)
{
  n <- dim(lprec)[2]

  if(n < 1)
    columns <- integer(0)

  ans <- rep("standard", length(columns))

  idx <- .Call(RlpSolve_is_semicont, lprec, as.integer(columns))
  ans[idx] <- "semi-continuous"

  idx <- .Call(RlpSolve_is_SOS_var, lprec, as.integer(columns))
  ans[idx] <- "SOS"

  ans
}

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.