Skip to content

Commit dae6df9

Browse files
committed
Reorganize models, add models with semi-fixed pop size, update readme.
1 parent f0127a1 commit dae6df9

File tree

43 files changed

+713
-938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+713
-938
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Resource-Explicit Interaction Models for Spatial Populations
22

3-
Models and data for the forthcoming "Resource-Explicit Interaction Models for Spatial Populations."
3+
Models and data for the forthcoming "Resource-Explicit Interaction Models for Spatial Populations."
44

55
Authors:
66
Samuel E. Champer, Bryan Chae, Benjamin C. Haller, Jackson Champer, Philipp W. Messer
7+
8+
9+
## Contents:
10+
Models are seperated into six folders.
11+
- non-resource-explicit_models: contains models that are used for performance comparisons in the paper.
12+
- hexagonally-tiled_models: contains versions of the four main resource-explicit model variants using a hexagonally tiled area.
13+
- square-tiled_models: as above, but with a square tiled area.
14+
- random_resource_placement_models: as above but with randomly placed resource nodes.
15+
- optimized_for_parallel: contains all of the models as organized in the four folders above, but optimized to be run with multithreading.
16+
other_resource_explicit_models: contains an additional version of the elastic model that has been optimized for a species with infrequent dispersal. This model uses a square tiling, but could also be implimented with a hexagonal tiling. This folder also contains versions of each of the four main resource-explicit model variants that have been altered to have a semi-fixed population size. These models use a square tiling, but could be implimented with any resource placement method.
17+
18+
19+
#### Note: These models require a minimum of the pre-release version of SLiM available on GitHub: https://github.com/MesserLab/SLiM

models/hexagonal/elastic_single_dispersal_hex.slim

Lines changed: 0 additions & 205 deletions
This file was deleted.

models/hexagonal/elastic_hex.slim renamed to models/hexagonally-tiled_models/elastic_hex.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ species all initialize() {
55
defineCfgParam("FORAGING_AREA", 1); // E.g., in hectares or sq km.
66
defineCfgParam("INDIVIDUALS_PER_FORAGING_AREA", 100);
77
defineCfgParam("LITTER_SIZE", 8);
8+
defineCfgParam("NODES_PER_FORAGING_AREA", 25); // Tiling density.
89

910
defineConstant("FORAGING_RADIUS", sqrt(FORAGING_AREA/PI));
1011
defineConstant("MIGRATION_DISTANCE", 2 * FORAGING_RADIUS);
11-
defineConstant("NODES_PER_FORAGING_AREA", 37); // Tiling density.
1212

1313
initializeSLiMModelType("nonWF");
1414

models/hexagonal/inelastic_fair_hex.slim renamed to models/hexagonally-tiled_models/inelastic_fair_hex.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ species all initialize() {
55
defineCfgParam("FORAGING_AREA", 1); // E.g., in hectares or sq km.
66
defineCfgParam("INDIVIDUALS_PER_FORAGING_AREA", 100);
77
defineCfgParam("LITTER_SIZE", 8);
8+
defineCfgParam("NODES_PER_FORAGING_AREA", 25); // Tiling density.
89

910
defineConstant("FORAGING_RADIUS", sqrt(FORAGING_AREA/PI));
1011
defineConstant("MIGRATION_DISTANCE", 2 * FORAGING_RADIUS);
11-
defineConstant("NODES_PER_FORAGING_AREA", 37); // Tiling density.
1212

1313
initializeSLiMModelType("nonWF");
1414

models/hexagonal/inelastic_hex.slim renamed to models/hexagonally-tiled_models/inelastic_hex.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ species all initialize() {
55
defineCfgParam("FORAGING_AREA", 1); // E.g., in hectares or sq km.
66
defineCfgParam("INDIVIDUALS_PER_FORAGING_AREA", 100);
77
defineCfgParam("LITTER_SIZE", 8);
8+
defineCfgParam("NODES_PER_FORAGING_AREA", 25); // Tiling density.
89

910
defineConstant("FORAGING_RADIUS", sqrt(FORAGING_AREA/PI));
1011
defineConstant("MIGRATION_DISTANCE", 2 * FORAGING_RADIUS);
11-
defineConstant("NODES_PER_FORAGING_AREA", 37); // Tiling density.
1212

1313
initializeSLiMModelType("nonWF");
1414

models/hexagonal/inelastic_resource_explicit_repro_hex.slim renamed to models/hexagonally-tiled_models/inelastic_resource_explicit_repro_hex.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ species all initialize() {
55
defineCfgParam("FORAGING_AREA", 1); // E.g., in hectares or sq km.
66
defineCfgParam("INDIVIDUALS_PER_FORAGING_AREA", 100);
77
defineCfgParam("LITTER_SIZE", 8);
8+
defineCfgParam("NODES_PER_FORAGING_AREA", 25); // Tiling density.
89

910
defineConstant("FORAGING_RADIUS", sqrt(FORAGING_AREA/PI));
1011
defineConstant("MIGRATION_DISTANCE", 2 * FORAGING_RADIUS);
11-
defineConstant("NODES_PER_FORAGING_AREA", 37); // Tiling density.
1212

1313
initializeSLiMModelType("nonWF");
1414

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)