This paper presents a Python implementation of a comprehensive Generalized Sustainability Socio-Ecological Model (GSSEM) that integrates economic, social, and climate change factors.
The original model was developed in MATLAB (the source code is available at Generalized Sustainability Socio-Ecological Model GSSEM). However, MATLAB's limitations in accessibility and the lack of modularity in the original code - the authors of the paper coded poorly, making the code difficult to read - prompted me to create this Python version.
This Python implementation emphasizes:
- Modularity: The code is well-structured with distinct modules, promoting readability and maintainability.
- Functionality Separation: Different functionalities are separated into dedicated functions, improving organization and clarity.
While the complete code might reside within a single file for simplicity, the modular structure ensures better organization and understanding.
Prerequisites:
-
Python 3.x installed (https://www.python.org/downloads/)
-
Needed library: numpy, matplotlib
Steps:
-
Clone the Repository:
git clone https://github.com/Harito97/Socio-Ecological_Model.git
-
View Model Parameters (Optional):
Before running the simulation, explore the available parameters that can be adjusted to customize the model's behavior:
python main.py show_params
-
Explore Model Documentation (Optional):
To understand the structure and functions of the model, generate documentation:
python main.py show_docs
-
Run the Simulation:
Execute the following command to initiate the simulation. The results will be stored in the
results
directory:python main.py run_simulation