get_Reward: Get the reward matrix from simulations, mainly used in...

View source: R/get_Reward.R

get_RewardR Documentation

Get the reward matrix from simulations, mainly used in Grid_Matrix

Description

Get the reward matrix from simulations, mainly used in Grid_Matrix

Usage

get_Reward(
  simulation_values = NULL,
  simulation_names = NULL,
  pattern = NULL,
  district_name = "water values district",
  opts = antaresRead::simOptions(),
  correct_monotony = FALSE,
  method_old = TRUE,
  hours = 0:168,
  possible_controls = NULL,
  max_hydro,
  mcyears = "all",
  area = NULL,
  pump_eff = NULL,
  district_balance = "water values district",
  expansion = F,
  fictive_areas = NULL
)

Arguments

simulation_values

Values generated by runWaterValuesSimulation

simulation_names

generated by runWaterValuesSimulation

pattern

A pattern to identify simulations.

district_name

Name of the district used to store output.

opts

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

correct_monotony

Binary argument (default to false). True to correct monotony of rewards.

method_old

If T, linear interpolation used between simulations reward, else smarter interpolation based on marginal prices

hours

If method_old=F, vector of hours used to evaluate costs/rewards of pumping/generating

possible_controls

If method_old=F, 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

mcyears

Vector of years used to evaluate rewards

area

Area used to calculate watervalues

pump_eff

Pumping efficiency

district_balance

Name of district used to evaluate controls on the stock

expansion

Binary. True if mode expansion was used to run simulations

fictive_areas

Vector of chr. Fictive areas used in simulation

Value

list containing a data.table timeid,MCyear,simulation overall cost, list of simulations names and list of simulations values


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