Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

return_objective

constructor for class return_objective


Description

if target is null, we'll try to maximize the return metric

Usage

return_objective(name, target = NULL, arguments = NULL, multiplier = -1,
  enabled = TRUE, ...)

Arguments

name

name of the objective, should correspond to a function, though we will try to make allowances

target

univariate target for the objective

arguments

default arguments to be passed to an objective function when executed

multiplier

multiplier to apply to the objective, usually 1 or -1

enabled

TRUE/FALSE

...

any other passthru parameters

Details

if target is set, we'll try to meet or exceed the metric, penalizing a shortfall

Value

object of class 'return_objective'

Author(s)

Brian G. Peterson


PortfolioAnalytics

Portfolio Analysis, Including Numerical Methods for Optimization of Portfolios

v1.1.0
GPL-2 | GPL-3
Authors
Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb, cph], Hezky Varon [ctb], Guy Yollin [ctb], R. Douglas Martin [ctb]
Initial release
2018-05-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.