The python lab scheduler is an adaptive scheduler solving generalized (suited to lab demands) versions of the JSSP (Job Shop Scheduling Problem). It comes as a microservice with a SiLA and a python interface.
Project description
PythonLab Scheduler
Generic Scheduler for Lab Automation Processes. 'Scheduling' in this sense means taking a workflow description and a descriptions of a lab(also called job shop) and assigning timestamps and machines to the steps of the workflow in an intelligent way.
flowchart TD
A[Scheduler]--computes-->B[Schedule];
B --contains-->C[Start Times];
B --contains-->D[Machine Assignments];
E[Job Shop]--YAML-->A;
F[Workflow]--python-->A;
G[Precedences]--make up-->F;
H[Process Steps]--make up-->F;
I[Machines]--make up-->E;
In other words: It solves a generalization of the Job Shop Scheduling Problem(JSSP). The main generalizations are
- Jobs can have several operations on the same machine
- There might be several machines of a kind
- Time-constraints between Operations (soft and hard)
- Machines can have capacities to do several operations in parallel
- Jobs can intersect(i.e. operations can have precedence constraints to other jobs operations)
More precise information on this can be found here
Installation
pip install labscheduler --index-url https://gitlab.com/api/v4/projects/70366720/packages/pypi/simple
Scheduling Framework Overview
The framework is designed to be very generic: The core scheduling algorithm can be exchanged by any scheduling concept that shall be developed, tested or used in a real world application. The scheduler itself can be used via python import or as a micro service via SiLA. More information in the framework can be found here.
graph TD;
A[User] <-- python --> B[Scheduler];
A <-- sila_python --> C[SiLA-Client];
C <-- SiLA --> D[SiLA-Server];
B <--> D;
B --> E[AlgorithmInterface];
E -- implemented by --> F[Algorithm];
E -- implemented by --> G[Algorithm];
E -- implemented by --> H[Algorithm];
Usage
For help in the console type
labscheduler --help
The scheduler can be accessed via standard python import or run on a SiLA-server and accessed via a SiLA-client. Examples can be found here:
Development
git clone https://gitlab.com/OpenLabAutomation/lab-automation-packages/lab-scheduler.git
# create a virtual environment and activate it then run
pip install -e .[dev]
# run unittests
invoke test # use the invoke environment to manage development
# commit changes: please install pre-commit hooks
pre-commit install
Documentation
The Documentation can be found here: https://openlabautomation.gitlab.io/lab-automation-packages/lab-scheduler/
Credits
This package was created with Cookiecutter and the gitlab.com/opensourcelab/software-dev/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uulabscheduler-0.2.48.tar.gz.
File metadata
- Download URL: uulabscheduler-0.2.48.tar.gz
- Upload date:
- Size: 234.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ac0e084fee9ae9cef6d207a9831acec31e1487cd313918a1a71c0c9302fee87
|
|
| MD5 |
9ed6e27f47074d63f6804b632518f30c
|
|
| BLAKE2b-256 |
540d0b7a642379bfd406db796efb173c4df2ba4f69c07c5d2ee7980d7663b6d8
|
File details
Details for the file uulabscheduler-0.2.48-py3-none-any.whl.
File metadata
- Download URL: uulabscheduler-0.2.48-py3-none-any.whl
- Upload date:
- Size: 88.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86f7b4623dff93753018c8338d201adcd2e288ad6cab31051f25fd2b2c70ed54
|
|
| MD5 |
e6f48b87825a3c518121150671a6bc6b
|
|
| BLAKE2b-256 |
7aca7fae882d835b1bfc31d61640f70873abe2f341cd9232dbd9cd2aef4d9d31
|