From 5af21282c47f193a2c3c7e9af8278b9c304d9426 Mon Sep 17 00:00:00 2001
From: Alois Dirnaichner <alodi@directbox.com>
Date: Thu, 30 Apr 2020 17:02:43 +0200
Subject: [PATCH] Redefine the bioliquids limit to act on all SE liquids and
 not specifically on transport liquids.

---
 core/equations.gms | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/core/equations.gms b/core/equations.gms
index 052626a..f4381d3 100644
--- a/core/equations.gms
+++ b/core/equations.gms
@@ -832,10 +832,12 @@ q_shGreenH2(t,regi)..
 *' Share of biofuels in transport liquids
 ***---------------------------------------------------------------------------
 q_shBioTrans(t,regi)..
-  sum(se2fe(entySe,entyFeTrans,te)$seAgg2se("all_seliq",entySe), vm_prodFe(t,regi,entySe,entyFeTrans,te) )
-  * v_shBioTrans(t,regi)
-  =e=
-  sum(se2fe("seliqbio",entyFeTrans,te), vm_prodFe(t,regi,"seliqbio",entyFeTrans,te) )
+    sum(se2se(entyPe,"seliqbio",te), vm_prodSe(t,regi,entyPe,"seliqbio",te))
+    =e=
+    (
+	sum(pe2se(entyPe,entySe,te)$seAgg2se("all_seliq",entySe), vm_prodSe(t,regi,entyPe,entySe,te))
+	+ sum(se2se(entySe,entySe2,te)$seAgg2se("all_seliq",entySe2), vm_prodSe(t,regi,entySe,entySe2,te))
+    ) * v_shGreenH2(t,regi)
 ;
 
  
-- 
GitLab