R/set.branch.weights.q

set.branch.weights <- function(lprec, weights)
{
  if(length(weights) != dim(lprec)[2])
    stop("the length of ", sQuote("weights"), " must be the same as the number",
         " of columns in the model")

  .Call(RlpSolve_set_var_weights, lprec, as.double(weights))

  invisible()
}

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.