Logo Lanfrica

Replication package for "Regional trade and sustainable intensification advance rice self-sufficiency in East Africa"

Domaine:

agriculture

Type de record:

dataset
Créateur:
Jos
Éditeur:
Wat
Hôte:avatar

 

Optimization model for sustainable intensification of agriculture under regional trade

https://github.com/jpwjosep…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:

  1. Use  MAIN_data_processing.R to pre-process input data, then convert it to GAMS data format by running input_xlsx_to_gdx.gms
  2. Run the baseline optimization in BASE_rice_model.gms with fixed scenario to determine water use in this fixed setting.
  3. Use water_constraint.R to scale the water use from baseline and use it in the actual opitmization model.
  4. Run the main optimization model in rice_model.gms. Due to the significant amount of scenarios this can take some time.
  5. Use gdx_to_csv.gms to convert data from GAMS to CSV fomrat to make it readable with other programmes, including R.
  6. 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:

  1. Custom Global Agro-Ecological Zones version extended for double-cropping and high spatial resolution of rice in GAEZ_rice_data.zip
  2. Productions costs assesmbled from literature and processed for use in this modeling framework in production_costs.csv
  3. 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:

  1. Supplementary data from Traberend et al. (2021) at: doi.org
  2. Producer Prices from FAOSTAT
  3. Rice areas from SPAM: doi.org

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

Similaires