R/roi-solver.R

Defines functions ROI_optimizer

Documented in ROI_optimizer

#' A ROI solver
#'
#' @param solver the solver name
#' @param control a list of control options
#'
#' @export
ROI_optimizer <- function(solver, control = list()) {
  if (!requireNamespace("ROIoptimizer", quietly = TRUE)) {
    stop("You need the package ROIoptimizer to use this optimizer", call. = FALSE)
  }
  ROIoptimizer::ROI_optimizer(solver, control)
}
dirkschumacher/rmpk documentation built on Dec. 14, 2021, 5:13 p.m.