get_local_reward: Calculate rewards for a simulation based on marginal prices,...

View source: R/get_Reward.R

get_local_rewardR Documentation

Calculate rewards for a simulation based on marginal prices, mainly used in Get_Reward

Description

Calculate rewards for a simulation based on marginal prices, mainly used in Get_Reward

Usage

get_local_reward(
  opts,
  hours,
  possible_controls,
  max_hydro,
  area_price,
  mcyears,
  district_balance = "water values district",
  pump_eff = 1
)

Arguments

opts

List of simulation parameters returned by the function antaresRead::setSimulationPath

hours

vector of hours used to evaluate costs/rewards of pumping/generating

possible_controls

data.frame week,u of controls evaluated per week

max_hydro

data.frame timeId,pump,turb returned by the function get_max_hydro, should be hourly values

area_price

Area used to evaluate marginal prices

mcyears

Vector of years used to evaluate rewards

district_balance

Name of district used to evaluate controls on the stock

pump_eff

Pumping efficiency

Value

a data.table mcYear,week,u,reward


rte-antares-rpackage/antaresWaterValues documentation built on Nov. 6, 2024, 11:17 p.m.