Setting up FarmDyn
FarmDyn is a bio-economic simulation model for agricultural farms.
1. Clone the Repository
Clone the FarmDyn repository to your local machine:
bash
git clone https://github.com/FarmDyn/FarmDyn.git2. Open in VS Code
Open the cloned folder in VS Code (File > Open Folder...).
3. Configure Compiling
FarmDyn uses exp_starter.gms as the main entry point for execution. You need to tell GAMS-IDE to use this file.
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) and search for "GAMS: Select main GAMS file". - Select
exp_starter.gmsfrom the list.
Alternatively, you can click on the GAMS file selector in the Status Bar (bottom right) and choose exp_starter.gms.

4. Run the Model
You are now ready to run the model!
- Press
F5or click the Run button (play icon) in the top right corner. - GAMS-IDE will execute
exp_starter.gms, even if you are currently editing a different file within the project.
TIP
Check out the Usage section to learn more about debugging and analyzing results.