R/Objective-proto.R

#' @include internal.R pproto.R ProjectModifier-proto.R
NULL

#' @export
if (!methods::isClass("Objective")) methods::setOldClass("Objective")
NULL

#' Objective prototype
#'
#' This prototype is used to represent an objective that can be added to a
#' [ProjectProblem-class] object. **This prototype
#' represents a recipe to make an objective, to actually add an objective to a
#' planning  problem: see [objectives]. Only experts should use this
#' class directly.**
#'
#' @name Objective-class
#'
#' @aliases Objective
NULL

#' @export
Objective <- pproto("Objective", ProjectModifier,
                    feature_phylogeny = function(self)
                      stop("no phylogeny defined"))
prioritizr/ppr documentation built on Sept. 10, 2022, 1:18 p.m.