Model initialisation

MtM ABM description

Author

David O’Sullivan

Published

February 19, 2025

No further detail seems necessary on the initialisation processes beyond the sequence shown in the flow chart below.1

flowchart TB
  A((START))
  B[Read land uses and<br>interventions from files]
  C{Geography<br>from GIS<br>files?}
  D[Setup LUC<br>on land]
  E[Partition land<br>into farms]
  F[Read LUC<br>from <span style='font-family:monospace;'>luc.asc</span>]
  G[Read farms<br>from <span style='font-family:monospace;'>parcels.shp</span>]
  H[Initialise farmers<br>one per farm]
  I[Partition farms by LUC<br>into holdings]
  J[Initialise market<br>settings from files]
  K[Run one cycle]
  L[Store settings<br>for rapid reset]
  M((END))
  A --> B
  B --> C
  C -->|N| D
  D --> E
  E --> H
  C -->|Y| F
  F --> G
  G --> H
  H --> I
  I --> J
  J --> K
  K --> L
  L --> M

Date Changes
2025-02-19 Initial post.

Footnotes

  1. It is worth noting that there are some tricky sequencing issues in the setup which make the associated code a little ‘fragile’ with some obvious-seeming changes for ‘efficiency’ likely to break the model! (These are noted in code comments.)↩︎