Get objective values of the optimization problem of each week and each scenario for a given simulation simu, mainly used in get_Reward() to build reward functions.
Source: R/functions.R
get_weekly_cost.RdGet objective values of the optimization problem of each week and each scenario for a given simulation simu, mainly used in get_Reward() to build reward functions.
Arguments
- simu
List of simulation parameters returned by the function
antaresRead::setSimulationPath()with the simulation selected.- mcyears
Vector of integer. Monte Carlo years used to compute water values.
- expansion
Binary. True if mode expansion (ie linear relaxation) of Antares is used to run simulations, argument passed to
runSimulation. It is recommended to use mode expansion, it will be faster (only one iteration is done) and results will be smoother as the cost result will correspond to the linear relaxation of the problem.
Value
A dplyr::tibble() with 3 columns : "timeId", "mcYear" and "ov_cost".