getPreprocPlan: Generate a data.table with the ptdf

View source: R/getPreprocPlan.R

getPreprocPlanR Documentation

Generate a data.table with the ptdf

Description

With links to the files PtdfMatrixFactors and PtdfMatrixConstraints, this function computes a data.table containing all columns needed to keep going on the procedure to get the distances between polyhedra.

Usage

getPreprocPlan(pathPtdfMatrixFactor = "PtdfMatrixFactors.csv",
  pathPtdfMatrixConstraint = "PtdfMatrixConstraints.csv")

Arguments

pathPtdfMatrixFactor

path of the file containing the ptdf of the flowbased structure

  • SESSION_ID : The Date, in numeric format : YYYYMMDD

  • MATRIX_ID : The Period (hour in the day), between 1 and 24

  • ROW_ID : The id of the row

  • REMAININGAVAILABLEMARGIN : The constraint (or ram)

pathPtdfMatrixConstraint

path of the file containing the constraints of the flowbased structure (the ram). Its columns have to be :

  • SESSION_ID : The Date, in numeric format : YYYYMMDD

  • MATRIX_ID : The Period (hour in the day), between 1 and 24

  • ROW_ID : The id of the row

  • BIDDINGAREA_ID : The id of the hub, we must have at least two different and they have to be in this selection: (23, 90, 95, 22, 20, 59, 97, 92, 41, 98, 83, 96, 99)

  • FACTOR : The values of the ptdf by hub

Examples


## Not run: 
library(data.table)
pathPtdfMatrixFactor = system.file(
"testdata/plan_new_version_factor_AT.rds", package = "fbClust")
pathPtdfMatrixConstraint = system.file(
"testdata/plan_new_version_constraint_AT.rds", package = "fbClust")

 PLAN <- getPreprocPlan(pathPtdfMatrixFactor = pathPtdfMatrixFactor,
 pathPtdfMatrixConstraint =  pathPtdfMatrixConstraint)

## End(Not run)


rte-antares-rpackage/fbClust documentation built on July 4, 2023, 12:06 a.m.