Simantha
Simantha is a package for simulating discrete manufacturing systems. It is designed to model asynchronous production systems with finite buffers.
The package provides classes for the following core manufacturing objects that are used to create a system:
- Source: Introduces raw, unprocessed parts to the system.
- Machine: Continuously retrieves, processes, and relinquishes parts. May also be subject to periodic degradation, failure, and repair.
- Buffer: Stores parts awaiting processing at a machine.
- Sink: Collects finished parts that exit the system.
- Maintainer: Repairs degrading machines according to the specified maintenance policy.
For the complete Simantha documentation, see https://simantha.readthedocs.io/en/latest/.
Installation
Simantha can be installed via pip using:
pip install simantha
Quickstart
The following is an example of the creation and simulation of a simple two-machine one-buffer line.
from simantha import Source, Machine, Buffer, Sink, System
# Create objects
source = Source()
M1 = Machine(name='M1', cycle_time=1)
B1 = Buffer(name='B1', capacity=5)
M2 = Machine(name='M2', cycle_time=1)
sink = Sink()
# Specify routing
source.define_routing(downstream=[M1])
M1.define_routing(upstream=[source], downstream=[B1])
B1.define_routing(upstream=[M1], downstream=[M2])
M2.define_routing(upstream=[B1], downstream=[sink])
sink.define_routing(upstream=[M2])
# Create system
system = System(objects=[source, M1, B1, M2, sink])
# Simulate
system.simulate(simulation_time=100)
# Output:
# Simulation finished in 0.00s
# Parts produced: 99
For additional examples, see simantha/examples.
Metadata
Release files for simantha 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simantha-0.1.1.tar.gz | 15.1 kB | Without provenance | Details for simantha-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simantha-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for simantha-0.1.1-py3-none-any.whl |
Total release size: 33.9 kB
Release files / simantha-0.1.1.tar.gz
| Download URL | simantha-0.1.1.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
959a936a377bf8269af1354fdbab351086fbd8ff5242832ca40ba9a1629310af
|
|
BLAKE2b-256 checksum How to use checksums |
5dab803dc624180ba82c44b1a19e75b2ae7a3938723597a35f0642025bc0cb12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
|
Release files / simantha-0.1.1-py3-none-any.whl
| Download URL | simantha-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7acb8faf39b1e93e028e0976fa033e923c899ad50c7f224097fd8cf6353359d8
|
|
BLAKE2b-256 checksum How to use checksums |
2de9e21042ee042fac15b448bf48263f07cf9a00cb37f9afac1540f5c696e21f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
|
Security for simantha 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.