Skip to main content

A discrete event simulation environment in Python.

Project description

DESimPy

Event-driven discrete event simulation in Python (DESimPy).

Overview

DESimPy is an event-driven simulation framework based on standard Python and inspired by SimPy.

Processes in DESimPy are defined by methods owned by Python objects inherited from the Event abstract base class. These processes can be used to model system-level or component level changes in a modelled system. Such systems might include customers or patients flowing through services, vehicles in traffic, or agents competing in games.

DESimPy implements time-to-event simulation where the next event in a schedule is processed next regardless of the amount of time in the simulated present to that event. This constrasts with "time sweeping" in which a step size is used to increment foreward in time. It is possible to combine time-to-event with time sweeping (see Palmer & Tian 2021), however this package does not provide any explicit support for that.

Here is the clock example from the SimPy package (an inspiration for this package) implemented in DESimPy.

The clock example highlights two important differences between SimPy and DESimPy. The first is that in DESimPy events are responsible for processes whereas in SimPy events are not (but are coupled to events). In DESimPy events occur only at points in time, so the notion of a process which has a beginning time and and ending time is implemented by two events in which the first event triggers.

DESimPy is released under a GNU GPL license.

Quickstart

In this section you'll learn the basics of DESimPy that will allow you to start developing your own event-driven discrete event simulations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desimpy-0.0.5.tar.gz (248.2 kB view hashes)

Uploaded Source

Built Distribution

desimpy-0.0.5-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page