Skip to content

Commit

Permalink
paper: Remove level-4 headings in Spaces section
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Dec 28, 2024
1 parent d2ad692 commit 6a0e1f5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ for species, agents in grouped:
### Spaces
Mesa 3 provides multiple spatial environments where agents interact, offering both discrete (cell-based) and continuous space implementations:

#### Discrete Spaces
In discrete spaces, agents occupy distinct cells or nodes. Mesa implements these using a doubly-linked structure where each cell maintains connections to its neighbors. The framework includes several discrete space variants with a consistent API:

- Grid-based: `OrthogonalMooreGrid`, `OrthogonalVonNeumanGrid`, and `HexGrid`
Expand All @@ -92,14 +91,12 @@ grid.create_property_layer("elevation", default_value=10)
high_ground = grid.elevation.select_cells(lambda x: x > 50)
```

#### Continuous Space
For models requiring precise positioning, `ContinuousSpace` allows agents to occupy any coordinate within defined boundaries:
```python
space = ContinuousSpace(x_max, y_max, torus=True)
space.move_agent(agent, (new_x, new_y))
```

#### Agent Types for Spaces
Mesa provides specialized agent classes for spatial interactions:

- `FixedAgent`: Remains at its assigned cell
Expand Down

0 comments on commit 6a0e1f5

Please sign in to comment.