Replication package for "Regional trade and sustainable intensification advance rice self-sufficiency in East Africa"
收藏资源简介:
Optimization model for sustainable intensification of agriculture under regional trade This replication package contains the code and data required to reproduce the analysis presented in the article "Regional trade and sustainable intensification advance rice self-sufficiency in East Africa". The model maxmizes farmers' benefits subject to resource constraints. The main model is written in GAMS. R scripts are used for pre- and post-processing data. Current versions of GAMS and R are required for replication. Run the contained scripts in the following sequence: Use MAIN_data_processing.R to pre-process input data, then convert it to GAMS data format by running input_xlsx_to_gdx.gms Run the baseline optimization in BASE_rice_model.gms with fixed scenario to determine water use in this fixed setting. Use water_constraint.R to scale the water use from baseline and use it in the actual opitmization model. Run the main optimization model in rice_model.gms. Due to the significant amount of scenarios this can take some time. Use gdx_to_csv.gms to convert data from GAMS to CSV fomrat to make it readable with other programmes, including R. Use analyze_outputs.R and figures_numbers_publication.R to analyze optimization model outputs and reproduce numbers, percentages and figures included in the article This package provides the following datasets: Custom Global Agro-Ecological Zones version extended for double-cropping and high spatial resolution of rice in GAEZ_rice_data.zip Productions costs assesmbled from literature and processed for use in this modeling framework in production_costs.csv subbasin_to_marketshed.csv and subbasin_to_country.csv provide mapping of spatial units for use in the GAMS model. These datasets need to be downloaded to fully reproduce the analysis: Supplementary data from Traberend et al. (2021) at: https://doi.org/10.1016/j.oneear.2021.02.012 Producer Prices from FAOSTAT Rice areas from SPAM: https://doi.org/10.7910/DVN/FSSKBW The economic model in GAMS can be run without the full data integration by using the processed data file provided in: model_inputs_cleaned.xlsx Output data of the economic optimization is provided in the csv files in model_outputs.zip



