Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

création d'un jeu de donnée ANTARES : une étude simple : le thermique : 2.Soit rajouter les groupes en créant beaucoup plus de groupes en mustRun #70

Open
jalazawa opened this issue Feb 22, 2018 · 0 comments
Assignees

Comments

@jalazawa
Copy link
Member

  1. Soit rajouter les groupes en créant beaucoup plus de groupes en mustRun

DATA, on prendra la donnée CTA des groupes thermiques

library(antaDraft)
perso_data_prod2016<-"D:\\Users\\jalazawa\\Documents\\2_ANTARES\\Dev\\packages\\transparency\\data_20180104\\B-PRODUCTION\\B02-Production_réalisée_par_groupe\\2016"

global_options <- getOption("global_options")

prod_by_group <- read_prod_group(production_dir = perso_data_prod2016,
                                 production_file = global_options$thermal_production_per_country)

Pour chaque pays

unique(augment_prod_by_group$country)
 [1] "AUSTRIA"       "BELGIUM"       "SWITZERLAND"   "GERMANY"       "SPAIN"        
 [6] "FRANCE"        "UK"            "IRELAND"       "ITALY"         "LUXEMBOURG"   
[11] "NORTH_IRELAND" "NETHERLANDS"   "PORTUGAL"  

Pour chaque centrale d'un pays

unique(augment_prod_by_group[
+   augment_prod_by_group$country=="BELGIUM", ]$group_name )
 [1] "Amercoeur 1 R GT"            "Amercoeur 1 R ST"           
 [3] "DROGENBOS GT1"               "DROGENBOS GT2"              
 [5] "DROGENBOS ST"                "HERDERSBRUG GT1"            
 [7] "HERDERSBRUG GT2"             "HERDERSBRUG ST"             
 [9] "INESCO WKK"                  "Marcinelle Energie (Carsid)"
[11] "RINGVAART STEG"              "SAINT-GHISLAIN STEG"        
[13] "Scheldelaan Exxonmobil"      "T-power Beringen"           
[15] "Zandvliet Power"             "Zelzate 2 Knippegroen"      
[17] "LANGERLO 1"                  "LANGERLO 2"                 
[19] NA                            "DOEL 1"                     
[21] "DOEL 2"                      "DOEL 3"                     
[23] "DOEL 4"                      "TIHANGE 1N"                 
[25] "TIHANGE 1S"                  "TIHANGE 2"                  
[27] "TIHANGE 3"

Il faut écrire un cluster, par exemple, pour la Belgique il faudra écrire 27 centrales.

Pour chaque centrale, il faut utiliser la fonction createCluster du package antaresEditObject.

createCluster(
              area = country, 
              cluster_name = group_name,
              group = production_type, 
             `marginal-cost` = 0.01, 
             `must-run`=true, 
              `unitcount`=1,
              `nominalcapacity`=generation_output_de_la_centrale_sur_le_pays,
              `time_series`=La_DONNEE_CTA,
              `add_prefix`=True,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants