Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandergrooff/discrete-event-simulation
Discrete event simulation library in Python
https://github.com/alexandergrooff/discrete-event-simulation
Last synced: about 1 month ago
JSON representation
Discrete event simulation library in Python
- Host: GitHub
- URL: https://github.com/alexandergrooff/discrete-event-simulation
- Owner: AlexanderGrooff
- License: mit
- Created: 2020-12-14T19:03:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T09:57:23.000Z (about 4 years ago)
- Last Synced: 2023-11-20T16:22:49.261Z (about 1 year ago)
- Language: Python
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PyPI version](https://badge.fury.io/py/discrete-event-simulation.svg)](https://pypi.org/project/discrete-event-simulation/)
# Discrete event simulationThis package can be used to create a discrete event simulation based on your parameters. Just install the library (pypi library is WIP) and use
the `DiscreteSimulation` class to run with your environment.## How to apply it to your scenario
Check out the [examples](https://github.com/AlexanderGrooff/discrete-event-simulation/tree/master/examples) where scenarios are sketched out using this framework.
The idea is that you state one or more available actions that the simulation can pick from which have a starting condition and events to trigger.The events that are triggered by actions will modify the state, which is tracked in the simulation's `Timeline`.
## Development
Make a virtualenv, install requirements and run `tox` to ensure everything works. It works from Python 3.8+.
```
mkvirtualenv -a . -p python3 $(basename $(pwd))
pip install -r requirements.txt
tox
```