portfolio_risk_objective: constructor for class portfolio_risk_objective

View source: R/objective.R

portfolio_risk_objectiveR Documentation

constructor for class portfolio_risk_objective

Description

if target is null, we'll try to minimize the risk metric

Usage

portfolio_risk_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

Value

object of class 'portfolio_risk_objective'

Author(s)

Brian G. Peterson


braverock/PortfolioAnalytics documentation built on April 18, 2024, 4:09 a.m.