Nothing
#' @include internal.R
NULL
#' Action names
#'
#' Extract the names of the actions in an object.
#'
#' @param x [ProjectProblem-class].
#'
#' @return `character` action names.
#'
#' @name action_names
#'
#' @aliases action_names,ProjectProblem-method
#'
#' @examples
#' # load data
#' data(sim_projects, sim_features, sim_actions)
#'
#' # build problem with default solver
#' p <- problem(sim_projects, sim_actions, sim_features,
#' "name", "success", "name", "cost", "name") %>%
#' add_max_richness_objective(budget = 200) %>%
#' add_binary_decisions() %>%
#' add_default_solver()
#'
#' # print problem
#' print(p)
#'
#' # print action names
#' action_names(p)
NULL
#' @name action_names
#'
#' @rdname action_names
#'
#' @exportMethod action_names
#'
#' @usage action_names(x)
#'
methods::setGeneric("action_names",
function(x) standardGeneric("action_names"))
#' @name action_names
#'
#' @rdname action_names
#'
#' @usage \S4method{action_names}{ProjectProblem}(x)
#'
methods::setMethod("action_names", "ProjectProblem",
function(x) x$action_names())
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.