Siamese-optimizer

Latest version: v0.0.2

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.2

Quick update

- Fixed `ImportError` on newer versions of `networkx`
- Testing autopublish to PyPI

0.0.1

This is an initial release of the **Siamese Optimizer** package.

A Python toolkit for manufacturing and assembly lines simulation and optimization.

Main features
-------------
- Create and visualize a production line in a network.
- Simulate throughput, capacity and restrictions of machines and buffers.
- Work with failure times and statistical distributions.
- Generate simulation reports, plots and optimization suggestions.
Getting Started
---------------
Firstly, import the simulation building blocks:

python
>>> from siamese import (
... Buffer,
... Line,
... Machine,
... Source
... )


Optionally, import some of the support objects from the `failure` and `distribution` submodules.

python
>>> from siamese.failures import TimeFailure
>>> from siamese.distributions import Uniform
>>> ...


Create the `Model` objects.

python
>>> entry_buffer = Buffer(
... name = 'entry_buffer',
... capacity = 4
... )

>>> source = Source(
... name = 'source',
... processing_time = dist.Exponential(1),
... output_buffer = 'entry_buffer'
... )

>>> first_machine = Machine(
... name = 'first_machine',
... processing_time = 2,
... input_buffer = 'entry_buffer',
... output_buffer = 'first_buffer',
... failure = failures.TimeFailure(
... time_between_failures = dist.Uniform(10,20),
... time_to_repair = dist.Triangular(1,2,3)
... )
... )


Feed the `Line` object with the models.

python
>>> model = Line(
... source,
... first_machine,
... second_machine,
... entry_buffer,
... first_buffer,
... second_buffer,
... last_machine,
... last_buffer
... )


Plot the `Line` model to visualize your prodution line.

python
>>> model.plot(seed=4)
Run the simulation to generate reports.
>>> model.simulate(100)
>>> model.report


Home Page
---------
https://github.com/GusFurtado/siamese-optimizer

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.