R/print_soo_function.R

Defines functions print.soo_function

Documented in print.soo_function

#' Print a SOO function.
#'
#' @param x [\code{\link{soo_function}}] A \code{\link{soo_function}} object.
#' @param ... Ignored.
#' @export
#' @method print soo_function
print.soo_function <- function(x, ...) {
  cat(function_name(x), "\n",
      "  Lower bounds: (", paste(lower_bounds(x), collapse=", "), ")\n",
      "  Upper bounds: (", paste(upper_bounds(x), collapse=", "), ")\n", sep="")
}

Try the soobench package in your browser

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

soobench documentation built on Feb. 9, 2020, 5:08 p.m.