Learn R Programming

FoRDM (version 1.0.1)

build_objectives_regret: Build Objectives Data Frame for Regret Analysis

Description

Specify for which objectives regret-based FoRDM analysis should be applied. For each objective, define its name, direction, weight, time aggregation method (mean, sum, min or max), and discount rate.

Usage

build_objectives_regret(
  names,
  direction = rep("maximize", length(names)),
  weights = rep(1/length(names), length(names)),
  time_aggregation = rep("mean", length(names)),
  discount_rate = rep(0, length(names))
)

Value

A data frame specifying objectives, directions, weights, time aggregation methods, and discount rates for use in FoRDM analysis.

Arguments

names

Names of objectives as the column names in the provided data.

direction

Direction of objective function: 'maximize' or 'minimize'.

weights

Relative weights (0-1) for each objective, must sum to 1.

time_aggregation

Time aggregation across objectives: 'mean', 'sum', 'min' or 'max'.

discount_rate

Annual discount rates for each objective (e.g., 0.02 means 2% per year), applied during time aggregation.