Skip to content
Snippets Groups Projects
Commit 8f9f8ec3 authored by Marianna Rottoli's avatar Marianna Rottoli
Browse files

Update EDGE-T script function calls.

parent 8470227d
No related branches found
No related tags found
1 merge request!159Pullreq1
...@@ -11,9 +11,8 @@ opt = parse_args(opt_parser); ...@@ -11,9 +11,8 @@ opt = parse_args(opt_parser);
library(data.table) library(data.table)
library(gdx) library(gdx)
library(gdxdt) library(gdxdt)
#library(edgeTrpLib) library(edgeTrpLib)
require(devtools) require(devtools)
load_all("../../../../../../edgetrplib/") ## this library has to be on the inconv_comp branch
library(rmndt) library(rmndt)
library(moinput) library(moinput)
...@@ -106,7 +105,7 @@ pref_data$VS1_final_pref = rbind(prefdata_nonmotV, pref_data$VS1_final_pref) ...@@ -106,7 +105,7 @@ pref_data$VS1_final_pref = rbind(prefdata_nonmotV, pref_data$VS1_final_pref)
average_prices = FALSE average_prices = FALSE
ES_demand_all = readREMINDdemand(gdx, REMIND2ISO_MAPPING, EDGE2teESmap, REMINDyears) ES_demand_all = readREMINDdemand(gdx, REMIND2ISO_MAPPING, EDGE2teESmap, REMINDyears, scenario)
## select from total demand only the passenger sm ## select from total demand only the passenger sm
ES_demand = ES_demand_all[sector == "trn_pass",] ES_demand = ES_demand_all[sector == "trn_pass",]
...@@ -132,7 +131,7 @@ if (file.exists(datapath("demand_previousiter.RDS"))) { ...@@ -132,7 +131,7 @@ if (file.exists(datapath("demand_previousiter.RDS"))) {
rebates_febatesBEV = FALSE rebates_febatesBEV = FALSE
} }
nonfuel_costs = applylearning(nonfuel_costs, gdx, REMINDmapping, EDGE2teESmap, demand_learntmp, ES_demandpr, rebates_febatesBEV = rebates_febatesBEV, rebates_febatesFCEV = rebates_febatesFCEV) nonfuel_costs = applylearning(nonfuel_costs, gdx, REMINDmapping, EDGE2teESmap, demand_learntmp, ES_demandpr, ES_demand, rebates_febatesBEV = rebates_febatesBEV, rebates_febatesFCEV = rebates_febatesFCEV)
saveRDS(nonfuel_costs, "nonfuel_costs_learning.RDS")} else { saveRDS(nonfuel_costs, "nonfuel_costs_learning.RDS")} else {
stations = NULL stations = NULL
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment