Emergent stigmergy and pheromone-guided decisions in a foraging collective
Authors/Creators
Description
Code for “Emergent stigmergy and pheromone-guided decisions in a foraging collective”
Manoj N H (Department of Electrical Engineering, IIT Madras) and S Ganga Prasath (Department of Applied Mechanics, IIT Madras)
The article poses collective foraging as an infinite-horizon optimal control problem, in which ants read and deposit a shared trail. The code solves the resulting coupled equations on a single trail and on a double bridge.
Contents
single_trail.ipynb: Python notebook with the steady-state and forward-in-time solvers for the single trail, the phase diagrams in colony size, diffusion, rewards and homing stiffness, and the numerical error analysis. It reproduces Figs. 1, 2, S1, S2 and S3, except the schematics in panels (a) of Figs. 1 and 2.auto_r1/: AUTO-07p continuation of the symmetric double bridge (r = 1), giving the pitchfork in the deposition asymmetry σ, the symmetric and broken branches, and the density profiles. It also holds the scan in colony size.auto_r_neq1/: AUTO-07p continuation of the unequal double bridge (r ≠ 1), giving the unfolding of the pitchfork in the length ratio r.results/: stored numerical results, which the notebook reads.figures/: figures drawn by the notebook.
Requirements
The notebook needs Python 3 with numpy, scipy and matplotlib. The continuation needs AUTO-07p and a Fortran compiler. Instructions are in README.md.
Variable names in the code follow the notation of the article. AUTO-07p returns no stability information, so the continuation output does not label branches as stable or unstable.
Files
fig1_single_trail.pdf
Files
(2.9 MB)
| Name | Size | |
|---|---|---|
|
md5:011893f9b93c2464dd22bd1264632003
|
3.5 kB | Download |
|
md5:1418bcd9a206a6fe87e25f4b20c74db1
|
10.1 kB | Download |
|
md5:f859fb06e013abd404de8c43ced7bb8b
|
1.3 kB | Download |
|
md5:c4c33b3b9c325137c2d8cb3a278895dc
|
143.1 kB | Download |
|
md5:ca7a177767535bb77b2baa249d1a81d1
|
173.7 kB | Download |
|
md5:2aba49fd2c55ee7180a4541f1c8ec775
|
1.1 kB | Download |
|
md5:13adcc6372310ee2af6d6674e9bbf9cb
|
57.1 kB | Preview Download |
|
md5:ace638dd0df56f6ac3d23f87910cd4bc
|
39.7 kB | Preview Download |
|
md5:99c6bf7caf75e5b98234871215a4deab
|
116.8 kB | Preview Download |
|
md5:09af9a565ecf8bf313b305e9d3b5a203
|
27.0 kB | Preview Download |
|
md5:8aed9bb9202625ae2ef1ca8684c54844
|
30.3 kB | Preview Download |
|
md5:6976b2fc4cfdc16488e9ba0b2deb4ff2
|
9.1 kB | Download |
|
md5:7990526a0174a26641b0e681ec81d8a0
|
215.3 kB | Download |
|
md5:3b1715852128c600c9f92c0e04ecc647
|
236.9 kB | Download |
|
md5:bedce0943abb89ad81aade8274fe640b
|
2.9 kB | Download |
|
md5:13699473477c8a4b62675e3753a3ccbe
|
2.5 kB | Preview Download |
|
md5:359c49c2ec3253095f6370b0f0f33ed9
|
536.4 kB | Download |
|
md5:41f9287c30051b87ae05ad3f22885957
|
114 Bytes | Preview Download |
|
md5:296509ca5dd0886863c5d4ecfd50531e
|
751.0 kB | Preview Download |
|
md5:a9b0f8b1984fedbaebbaa357a7fda804
|
498.8 kB | Download |