From b9e6912755b2268a25751a8b60222666ff25045d Mon Sep 17 00:00:00 2001
From: Alois Dirnaichner <alodi@directbox.com>
Date: Thu, 9 Jan 2020 17:21:44 +0100
Subject: [PATCH] Add biofuel share parameter and equation.

---
 modules/35_transport/edge_esm/bounds.gms       |  3 +++
 modules/35_transport/edge_esm/declarations.gms |  7 +++++++
 modules/35_transport/edge_esm/equations.gms    |  7 +++++++
 modules/35_transport/edge_esm/sets.gms         | 13 +++++++++++++
 4 files changed, 30 insertions(+)

diff --git a/modules/35_transport/edge_esm/bounds.gms b/modules/35_transport/edge_esm/bounds.gms
index 1178902..3824fb4 100644
--- a/modules/35_transport/edge_esm/bounds.gms
+++ b/modules/35_transport/edge_esm/bounds.gms
@@ -5,4 +5,7 @@
 *** |  REMIND License Exception, version 1.0 (see LICENSE file).
 *** |  Contact: remind@pik-potsdam.de
 *** SOF ./modules/35_transport/edge_esm/bounds.gms
+vm_shBioFe.lo(t,regi)$(t.val > 2020) = 0.1;
+vm_shBioFe.lo(t,regi)$(t.val > 2025) = 0.2;
+vm_shBioFe.lo(t,regi)$(t.val > 2030) = 0.4;
 *** EOF ./modules/35_transport/edge_esm/bounds.gms
diff --git a/modules/35_transport/edge_esm/declarations.gms b/modules/35_transport/edge_esm/declarations.gms
index 457c739..4827f6d 100644
--- a/modules/35_transport/edge_esm/declarations.gms
+++ b/modules/35_transport/edge_esm/declarations.gms
@@ -5,4 +5,11 @@
 *** |  REMIND License Exception, version 1.0 (see LICENSE file).
 *** |  Contact: remind@pik-potsdam.de
 *** SOF ./modules/35_transport/edge_esm/declarations.gms
+Positive variables
+vm_shBioFe(ttot,all_regi) "Share of biofuels in all final energies used for transportation. Value between 0 and 1."
+;
+
+Equations
+q35_shBioFe(ttot,all_regi) "Define the share of biofuels in all final energies for transportation."
+;
 *** EOF ./modules/35_transport/edge_esm/declarations.gms
diff --git a/modules/35_transport/edge_esm/equations.gms b/modules/35_transport/edge_esm/equations.gms
index 860c662..9095bba 100644
--- a/modules/35_transport/edge_esm/equations.gms
+++ b/modules/35_transport/edge_esm/equations.gms
@@ -5,4 +5,11 @@
 *** |  REMIND License Exception, version 1.0 (see LICENSE file).
 *** |  Contact: remind@pik-potsdam.de
 *** SOF ./modules/35_transport/edge_esm/equations.gms
+
+q35_shBioFe(t,regi)..
+  sum(se2fe(entySe,fe_with_bio_dyn35,te), vm_prodFe(t,regi,entySe,fe_with_bio_dyn35,te) )
+  * vm_shBioFe(t,regi)
+  =e=
+  sum(se2fe(se_with_bio_dyn35,fe_with_bio_dyn35,te), vm_prodFe(t,regi,se_with_bio_dyn35,fe_with_bio_dyn35,te) )
+;
 *** EOF ./modules/35_transport/edge_esm/equations.gms
diff --git a/modules/35_transport/edge_esm/sets.gms b/modules/35_transport/edge_esm/sets.gms
index a89a09a..e946d61 100644
--- a/modules/35_transport/edge_esm/sets.gms
+++ b/modules/35_transport/edge_esm/sets.gms
@@ -141,6 +141,19 @@ segabio.fegat.tdbiogat
 segafos.fegat.tdfosgat
 /
 
+fe_with_bio_dyn35(all_enty)
+/
+fepet
+fegat
+fedie
+/
+
+se_with_bio_dyn35(all_enty)
+/
+segabio
+seliqbio
+/
+
 enty_dyn35(all_enty)
 /
 fegat        "final energy gas transport"
-- 
GitLab