Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lamdav/airplaneseatingsim
A Simple Airplane Boarding Simulator
https://github.com/lamdav/airplaneseatingsim
cli python python3 simulator
Last synced: 13 days ago
JSON representation
A Simple Airplane Boarding Simulator
- Host: GitHub
- URL: https://github.com/lamdav/airplaneseatingsim
- Owner: lamdav
- Created: 2017-09-08T13:57:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-16T02:25:55.000Z (over 7 years ago)
- Last Synced: 2025-01-11T08:56:29.305Z (17 days ago)
- Topics: cli, python, python3, simulator
- Language: Python
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Airplane Seating Sim
## Description
This was a project done for the class Mathematical Modeling. This simulator was made to help compare airplane boarding
methods. [Problem Statement](http://www.comap.com/undergraduate/contests/mcm/contests/2007/problems/)After some research, we focused on the ZigZag model. The ZigZag model was developed by combining some key ideas found
in back-to-front and outside-in boarding to make efficient use of the aisle. This simulator uses the [Zellegraphics](http://mcsp.wartburg.edu/zelle/python/graphics.py)
library for visualization. You can read more about the development of the model [here](selective-boarding-minimize.pdf)## Assumptions
There are several key assumptions made while developing this model and applied by the simulator:
- All Passengers move at the same rate. The simulator has support for aisle rate variations.
It can have values (0.2, 0.4, ..., 2.0).- Carry-On Luggage stowing rate is constant. The simulator does not have support to vary this due to time constraints.
- Adjacent passengers boarding opposite rows on opposite sides will not interfere with each other.
- All passengers arrive on time.
## Using Simulator
Clone the repo:
```
git clone https://github.com/lamdaV/AirplaneSeatingSim.git
```Run the script:
```
python src/main.py
```Parameters:
- `-m`, `--model` followed either `zone` or `zig` with default `zone`
- `-r`, `--rows` followed by some integer with default `3`
- `-v`, `--visualize` this is a flag to toggle visualizer with default to `False`
- `-c`, `--constant` this is a flag to toggle constant aisle movement rate to `1` with default `False`