View source: R/math_functions.R
build_data_watervalues | R Documentation |
value_node_gen
. Penalties taken into account.
Used in Grid_Matrix
Calculate and plot watervalues with value_node_gen
. Penalties taken into account.
Used in Grid_Matrix
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
)
watervalues |
Data frame generated in |
statesdt |
Data frame of possible states, generated in |
reservoir |
Data frame describing rule curves, generated by |
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 |
Data frame with water value (vu) for each week (weeks) and each state (states). vu_pen corresponds to water value without penalties
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.