bellman_parallel_value | R Documentation |
Compute Bellman values at step i from step i+1 (version used in parallel computing)
bellman_parallel_value( Data_week, i, next_week_values_l, max_mcyear, E_max, P_max, niveau_max, na_rm, decision_space, alpha, decimals )
Data_week |
A "data.table" generated in Grid_Matrix code that contains: * states Numeric. All the water values that can be set, listed in decreasing order. * value_inflow Numeric. Inflow values for each Monte-Carlo year. * Rewards for each simulation value and each Monte-Carlo year. * level_high Numeric. Highest possible reservoir value. * level_low Numeric. Lowest possible reservoir value. * states_next List of vectors enumerating all reachable states |
i |
the row number of the point to calculate her bellman value. |
next_week_values_l |
Numeric. Bellman values at step i+1. |
max_mcyear |
Numeric of length 1. Number of Monte-Carlo year used in simulations |
E_max |
Numeric of length 1. Maximum energy that can be generated by hydro storage over one step of time. |
P_max |
Numeric of length 1. Maximum energy that can be pumped to reservoir over one step of time. |
niveau_max |
Numeric of length 1. Reservoir capacity. |
na_rm |
Boolean. Remove NAs |
decision_space |
Simulation constraints values |
alpha |
maximum tolerance. |
decimals |
number of decimals. |
a data.table
like Data_week with the Bellman values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.