build_data_watervalues: Calculate and plot watervalues with 'value_node_gen'....

View source: R/math_functions.R

build_data_watervaluesR Documentation

Calculate and plot watervalues with value_node_gen. Penalties taken into account. Used in Grid_Matrix

Description

Calculate and plot watervalues with value_node_gen. Penalties taken into account. Used in Grid_Matrix

Usage

build_data_watervalues(
  watervalues,
  statesdt,
  reservoir,
  penalty_level_high,
  penalty_level_low,
  force_final_level = F,
  penalty_final_level_low = 0,
  penalty_final_level_high = 0,
  final_level = NULL
)

Arguments

watervalues

Data frame generated in Grid_Matrix

statesdt

Data frame of possible states, generated in Grid_Matrix

reservoir

Data frame describing rule curves, generated by readReservoirLevels

penalty_level_high

Penalty for violating the bottom rule curve

penalty_level_low

Penalty for violating the top rule curve

force_final_level

Binary. Whether final level should be constrained

penalty_final_level_low

Penalties for both bottom rule curve to constrain final level

penalty_final_level_high

Penalties for top rule curve to constrain final level

final_level

Double. Final level to consider

Value

Data frame with water value (vu) for each week (weeks) and each state (states). vu_pen corresponds to water value without penalties


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