Model adds new capacity while historical_new_capacity should be enough #459
-
Dear Sir, I have encountered with a problem in using MESSAGE-ix equations. Regards Sets
;
/wind_ppl/
----------------------------------------------------------------------------------------------------------------------
Sets
Sets
seq_period('690','700')=yes;
; Alias(type_tec,type_tec_share); Sets
;
map_resource(node,commodity,grade,year_all)=yes; *map_tec_lifetime(node,tec,'700','710')=no; Parameters
Parameters
Parameters
; Parameters Parameters
; Parameters Parameter
; Parameters Parameters Parameters Parameters
Parameter
Parameter
;
fix_cost(node,'coal_ppl',vintage,year)=30; var_cost(node,'coal_ppl',vintage,year_all,mode,time)=30; duration_period(year_all)=10;
*farz minkone kole sal dar madare capacity_factor(node,'coal_ppl',year,year,time2)=1; technical_lifetime(node,'coal_ppl',year)=60; coal_fraction = 0.5; *1., 1.5, 1.9 historic_demand = 0.85 * demand_per_year; historical_new_capacity(node,'coal_ppl','700')=50; df_year(year_all) = 1 ; df_period(year_all) =
remaining_capacity(node,'coal_ppl',vintage,year_all)= 1; *remaining_capacity(node,'coal_ppl',vintage,'710')= 1; remaining_capacity(node,tec,vintage,year_all)$( map_tec_lifetime(node,tec,vintage,year_all) display remaining_capacity,technical_lifetime,duration_period_sum;
renewable_capacity_factor(node,commodity,grade,level_renewable,year)=1; construction_time(node,inv_tec,year)=1;
display construction_time_factor;
beyond_horizon_factor(node,inv_tec,vintage)$( beyond_horizon_lifetime(node,inv_tec,vintage) )
resource_volume(node,'coal',grade)=1000; display historical_new_capacity,duration_time_rel,input,beyond_horizon_factor,end_of_horizon_factor,construction_time_factor; Variables
Variables Positive Variables
Equations
OBJECTIVE.. COST_ACCOUNTING_NODAL(node, year)..
*///tec az sum dovom hazf shode RESOURCE_CONSTRAINT(node,commodity,grade,year)$( map_resource(node,commodity,grade,year)
CAPACITY_MAINTENANCE_HIST(node,inv_tec,vintage,first_period).. ** ******/////////////////// RESOURCE_HORIZON(node,commodity,grade)$( SUM(year$map_resource(node,commodity,grade,year), 1 ) ).. RENEWABLES_EQUIVALENCE(node,renewable_tec,commodity,year,time)$( RENEWABLES_CAPACITY_REQUIREMENT(node,inv_tec,commodity,year)$(SUM( (vintage,mode,time,grade,level_renewable), RENEWABLES_POTENTIAL_CONSTRAINT(node,commodity,grade,year)$( map_ren_grade(node,commodity,grade,year)) OPERATION_CONSTRAINT(node,inv_tec,vintage,year)$( map_tec_lifetime(node,inv_tec,vintage,year) AND operation_factor(node,inv_tec,vintage,year) < 1 ).. CAPACITY_CONSTRAINT(node,inv_tec,vintage,year,time)$( map_tec_time(node,inv_tec,year,time) AND map_tec_lifetime(node,inv_tec,vintage,year) ).. COMMODITY_USE_LEVEL(node,'electricity','final',year,time) option limrow=100000; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks @zsalimian for posting your question. From what you have shared, I see that you have combined several GAMS files of MESSAGEix, from loading data and mapping files to the core formulation and post-processing, into one single file. Furthermore, you have specified your input data hard-coded in GAMS and have changed some parts of the GAMS code to fit your purpose. In principle, we encourage the users for flexible use of the code, and modify it as they wish. However, we do not have enough capacity to read new codes developed by different users and comment on that. |
Beta Was this translation helpful? Give feedback.
Thanks @zsalimian for posting your question. From what you have shared, I see that you have combined several GAMS files of MESSAGEix, from loading data and mapping files to the core formulation and post-processing, into one single file. Furthermore, you have specified your input data hard-coded in GAMS and have changed some parts of the GAMS code to fit your purpose. In principle, we encourage the users for flexible use of the code, and modify it as they wish. However, we do not have enough capacity to read new codes developed by different users and comment on that.
So, if you believe a part of MESSAGEix GAMS formulation is not working as intended in the documentation, please replicate th…