-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbellman_parallel_value.Rd
60 lines (50 loc) · 1.69 KB
/
bellman_parallel_value.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Bellman.R
\name{bellman_parallel_value}
\alias{bellman_parallel_value}
\title{Compute Bellman values at step i from step i+1 (version used in parallel computing)}
\usage{
bellman_parallel_value(
Data_week,
i,
next_week_values_l,
max_mcyear,
E_max,
P_max,
niveau_max,
na_rm,
decision_space,
alpha,
decimals
)
}
\arguments{
\item{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}
\item{i}{the row number of the point to calculate her bellman value.}
\item{next_week_values_l}{Numeric. Bellman values at step i+1.}
\item{max_mcyear}{Numeric of length 1. Number of Monte-Carlo year
used in simulations}
\item{E_max}{Numeric of length 1. Maximum energy that can be generated by
hydro storage over one step of time.}
\item{P_max}{Numeric of length 1. Maximum energy that can be pumped to
reservoir over one step of time.}
\item{niveau_max}{Numeric of length 1. Reservoir capacity.}
\item{na_rm}{Boolean. Remove NAs}
\item{decision_space}{Simulation constraints values}
\item{alpha}{maximum tolerance.}
\item{decimals}{number of decimals.}
}
\value{
a \code{data.table} like Data_week with the Bellman values
}
\description{
Compute Bellman values at step i from step i+1 (version used in parallel computing)
}