From e34b1d504640c45f99b8cb6ee4f76cc04b513076 Mon Sep 17 00:00:00 2001 From: PRATAMA Yoga <48617743+ywpratama@users.noreply.github.com> Date: Wed, 28 Jun 2023 15:13:17 +0200 Subject: [PATCH] Making base year definition dynamic --- message_ix/model/MESSAGE/model_solve.gms | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message_ix/model/MESSAGE/model_solve.gms b/message_ix/model/MESSAGE/model_solve.gms index 890ed628f..05cc60ad7 100644 --- a/message_ix/model/MESSAGE/model_solve.gms +++ b/message_ix/model/MESSAGE/model_solve.gms @@ -61,7 +61,7 @@ EMISSION_CONSTRAINT.m(node,type_emission,type_tec,type_year)$( PRICE_EMISSION.l(node,type_emission,type_tec,year)$( SUM(type_year$( cat_year(type_year,year) ), 1 ) ) = SMAX(type_year$( cat_year(type_year,year) ), - EMISSION_CONSTRAINT.m(node,type_emission,type_tec,type_year) ) - * (df_period("1950")/df_period(year)) * (duration_period(year)/duration_period("1950")) ; + * (sum(year_all$(ord(year_all) = 1), df_period(year_all))/df_period(year)) * (duration_period(year)/(sum(year_all$(ord(year_all) = 1), duration_period(year_all)))) ; PRICE_EMISSION.l(node,type_emission,type_tec,year)$( PRICE_EMISSION.l(node,type_emission,type_tec,year) = - inf ) = 0 ;