initFlowBased: Initialization of the Antares flow-based study

Description Usage Arguments Note Examples

View source: R/initFlowBased.R

Description

This function initializes the environment for a flow-based study. The study must be of Antares version equal or higher to 6.1.3 to enable binding constraints on thermal clusters.

Usage

1
2
initFlowBased(fb_opts = antaresFlowbased::fbOptions()$path,
  opts = antaresRead::simOptions(), scenarios = rep(1:200, times = 5))

Arguments

fb_opts

list of flowbased parameters (flow-based model directory) returned by the function setFlowbasedPath. By default, the value is indicated by antaresFlowbased::fbOptions()

opts

list of simulation parameters returned by the function setSimulationPath, Antares study. By default, the value is indicated by antaresRead::simOptions()

scenarios

numeric vector, it represents the flow-based scenarios builder. It will be written in the file scenario.txt and used by Antares to combine Antares time series (the scenarios builder) and the flow-based time series. By default, the value is rep(1:200, times = 5) (1000 mcYears, with 200 time series repeated 5 times)

Note

The folder designed by by fb_opts is a flow-based model. It must include the following files :

These files will be written in the Antares study (directory user'\'flowbased'\'), as well as additional files:

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

 antaresRead::setSimulationPath("D:/Users/titorobe/Desktop/antaresStudy",1)
 antaresFlowbased::setFlowbasedPath(model = "D:/Users/titorobe/Desktop/FBModel")
 initFlowBased()
 
## End(Not run)
 
 

rte-antares-rpackage/antaresFlowbased documentation built on Oct. 19, 2020, 11:23 a.m.