Git Product home page Git Product logo

simantha's Introduction

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.

simantha's People

Contributors

hoff-diesel avatar mzh5263 avatar

Stargazers

Crystal_Alchemist avatar Chiye Ma avatar Gulshad avatar  avatar Fuge Zou avatar  avatar Chathuranga Hettiarachchi avatar Ophiel avatar  avatar  avatar Diyuan Huang avatar  avatar  avatar Alexandr avatar  avatar Chintan Mishra avatar apexpromgt avatar Michael sun avatar Renzo Benavides avatar ksleta avatar Alexander Xavier O'Rourke Goby avatar Marcelo Luis Ruiz Rodríguez avatar  avatar Felix Viberg avatar  avatar Liang7 avatar  avatar Jon Jia avatar  avatar Rodrigo Brust avatar David avatar Rohit Kukreja avatar  avatar Bharath Chandra avatar  avatar  avatar Sadman Araf avatar Boyang Song avatar Ya Song avatar Oleksandr Beketov avatar Pranjal Tandon avatar Janus avatar Manuel Blechschmidt avatar Timothy Sprock avatar

Watchers

Timothy Sprock avatar  avatar Ya Song avatar

simantha's Issues

Can't run simantha

when trying the example on the Readme.md i get:

Traceback (most recent call last): File "SingleMachine.py", line 1, in <module> from simantha import Source, Machine, Sink, System File "/Users/lucas.garcia/Library/Python/3.8/lib/python/site-packages/simantha/__init__.py", line 1, in <module> from .System import System File "/Users/lucas.garcia/Library/Python/3.8/lib/python/site-packages/simantha/System.py", line 9, in <module> from .Source import Source File "/Users/lucas.garcia/Library/Python/3.8/lib/python/site-packages/simantha/Source.py", line 3, in <module> from .Machine import Machine File "/Users/lucas.garcia/Library/Python/3.8/lib/python/site-packages/simantha/Machine.py", line 266 <<<<<<< HEAD

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.