software · Q1314
SimPy
Python discrete-event simulation framework for interacting processes and shared resources.
Overview
SimPy is a Python framework for process-based discrete-event simulation. Models describe interacting activities and limited resources in code, making it suitable for queues, service processes and capacity experiments.[2][3]
Processes and resources
Python generators describe activities that wait for events, spend simulated time or acquire resources. The framework distinguishes capacity-limited resources, containers holding interchangeable quantities and stores holding individual objects. Priority and preemption support different service policies. Those distinctions matter when translating a real operation into a model: a pool of identical servers is not the same as a store of machines with different attributes.[2][3]
Simulation time
Runs can advance as quickly as computation allows, follow wall-clock time or be stepped manually. SimPy processes events sequentially; equal-time events are ordered by scheduling sequence. Parallel activity in the modeled world does not mean parallel execution on the computer. Timing resolution and random-input handling therefore belong in the model's reproducibility checks.[2][4]
Observations and output
Monitoring is designed around the modeler's questions. Process variables, resource utilization and queue lengths can be recorded at intervals or when events occur, then stored in lists, files or databases. This flexibility comes with implementation work: the framework does not automatically choose meaningful statistics or produce a complete analysis report for a new model.[5]
Scope and licensing
SimPy uses the MIT license and runs as part of a Python program. It is not a ready-made graphical modeling application. Its own overview says it offers no special help for continuous simulation and may be unnecessary for fixed-step processes that never interact. Existing graphical projects need their behavior reimplemented rather than assuming a native import path.[1][2]
When it substitutes
SimPy can replace the discrete-event portion of AnyLogic when a team wants a code-first Python model of queues and resource contention. The assessment does not extend to AnyLogic's complete visual environment, animation or mixed-method tooling. Recreate event rules, observations and validation cases before comparing outcomes.[2][3][5][6][7]
Capabilities & limitations
Queue and resource simulation
supportedCode interacting processes with capacity, priority and preemption.[3]
Dynamic system modeling and simulation · Python environment · Edition, deployment and model dependencies affect availability
1 source · check evidence
Queues, priority/preemption, containers and stores
vendor · checked 2026-10-07Custom monitoring
supportedModel code can collect process/resource observations into chosen storage.[5]
Dynamic system modeling and simulation · Python environment · Edition, deployment and model dependencies affect availability
1 source · check evidence
Custom process/resource observations and storage
vendor · checked 2026-10-07Continuous-model assistance
unsupportedThe project explicitly offers no dedicated continuous-simulation features.[2]
Dynamic system modeling and simulation · Python environment · Edition, deployment and model dependencies affect availability
1 source · check evidence
Process-based Python simulation; continuous-model limits
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
References
- SimPy license
MIT license
vendor · retrieved 2026-10-07 - SimPy overview
Process-based Python simulation; continuous-model limits
vendor · retrieved 2026-10-07 - SimPy shared resources
Queues, priority/preemption, containers and stores
vendor · retrieved 2026-10-07 - SimPy time and scheduling
Sequential deterministic execution and equal-time ordering
vendor · retrieved 2026-10-07 - SimPy monitoring
Custom process/resource observations and storage
vendor · retrieved 2026-10-07 - Combining AnyLogic modeling methods
Shared namespace and continuous/discrete interactions
vendor · retrieved 2026-10-07 - AnyLogic Professional
Development, debugging and integration
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 1362 | 2026-10-14 03:04:39 | /* wbeditentity-create-item:0| */ sf:b943212b-9f4e-4cc6-85d4-d266e38d0ddd:v1 | Add SimPy with cited simulation workflows, licensing and migration limits; documentation research only. | attribution: /proposals/b943212b-9f4e-4cc6-85d4-d266e38d0ddd |