Skip to content

Commit c042f95

Browse files
committed
Add documentation
1 parent 02ad860 commit c042f95

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Ship simulation
2+
3+
Agent based simulation of ship movements between ports, using dynamic window routing path finding, with support for speed restrictions.
4+
5+
![A set of simultd ship trajectories](ships.png)
6+
7+
## Installation
8+
9+
10+
``` bash
11+
pip install mesa==2.4.0 shapely movingpandas
12+
```
13+
14+
## Components
15+
16+
### Agents
17+
18+
* Ports (`agents/port.py`) ... Fixed locations in the simulation space that serve as start and end points for ship trips
19+
* Ships (`agents/ship.py`) ... Ships travel from an origin port to a destination port using their desired speed. They use path finding based on dynamic window routing(`dynamic_window_approach.py`) and A* routing (`a_star.py`).
20+
* Obstacle (`agents/obstacle.py`) ... Areas that ships avoid.
21+
22+
### Model
23+
24+
* The ShipModel (`model.py`) initializes the simulation based on the configuration (`config/config.json`) and runs it.
25+
26+
## Documentation
27+
28+
Usage examples are provided in the `ships.ipynb` notebook, including simulation of vessel movements and generation of synthetic movement anomalies.
29+
30+
## Acknowledgements
31+
32+
This work was supported in part by the Horizon Framework Programme of the European Union under grant agreement No. 101070279 ([MobiSpaces](https://mobispaces.eu)).
115 KB
Loading

0 commit comments

Comments
 (0)