Simulation of Manufacturing Systems
Project description
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.
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
Built Distribution
File details
Details for the file simantha-0.1.0.tar.gz
.
File metadata
- Download URL: simantha-0.1.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0462f3896a65b851d4b2eea151f16ac018a97fd7caa418c9179ee8de6562993 |
|
MD5 | 241f7593591e1231ba6dd82caa591f4b |
|
BLAKE2b-256 | 1c89dd40ed6fc899ac877d3e956a3eed8a1ee1065f78164b592763a8fd2986ba |
File details
Details for the file simantha-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: simantha-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 492806dd9bbc8abd39bcaa9acfe4993b1b207a72192098b9268a765ad07cd9dd |
|
MD5 | 4f8f440e5350bba670473a62ebbb566a |
|
BLAKE2b-256 | 09018b65eba03da17a059f8077b134e19462c5dadde317410c749c7b3991140f |