Skip to main content

Dynamic Job Shop Scheduling with Ant Colony Optimisation

This repository implements a Min–Max Ant System (MMAS) solver for the Dynamic Job Shop Scheduling Problem (DJSSP).
It is designed to model real-world scheduling environments (e.g. hospitals, manufacturing plants) where:

  • Jobs arrive dynamically over time.
  • Some operations are already underway and cannot be rescheduled.
  • Schedules must balance makespan minimisation with disruption minimisation.

Prerequisites

  • Python 3.13+
  • NumPy
  • Matplotlib (for plotting)
  • pytest (for testing)

Installation

uv pip install aco-djssp

Alternatively, cloning the repo and then running

uv run tests/test_sim.py

should also work and create a local .venv/, a python virtual environment with the package installed.

Running an example

There are several ways of running the package. The most common method will be the one found in tests/test_sim.py. Note that this assumes that some benchmarked static JSSP are downloaded. The ones used for testing can be found here. This test will run a simulation with a dynamic job arrival, and then save the resulting schedule in /tmp/. If using Windows, this path will need to be changed. A more involved and complicated example can be found in tests/test_hospital.py. The way this example works is a little unusual due to plotting requirements, and I would recommend following the approach set out in test_sim.py, but it is a good showcase of what can be done. Feel free to hack away at the code if the desired functionality is not present!

Testing

Tests can be found in tests/ and can be run with

uv run pytest

or can be manually selected by specifying the file name after uv run pytest.

License

This project is licensed under the MIT license. See LICENSE.MD for details.

Metadata

Release files for aco-djssp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aco-djssp 0.1.1
File Size Uploaded Provenance
aco_djssp-0.1.1.tar.gz 869.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aco-djssp 0.1.1
File Interpreter ABI Platform
aco_djssp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 887.8 kB

Release files / aco_djssp-0.1.1.tar.gz

Download URL aco_djssp-0.1.1.tar.gz
Size 869.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fe4fbbc7bbfa54b537ac7a147dc097c09076e90acecafa3c1a197eff7d47b49b
BLAKE2b-256 checksum
How to use checksums
4a76ba9a5a902c19893675fca7d24166877fbc1f826a6e16bd286365295c0ba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / aco_djssp-0.1.1-py3-none-any.whl

Download URL aco_djssp-0.1.1-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4521226c0f43e86b97e33ffad2dc68081511ccce9813e8041cb4fb33b2654221
BLAKE2b-256 checksum
How to use checksums
3ce06d81a1b97bab675389b640f30a9595eba1ca1d72a5f097e6b5e14fbf6a9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for aco-djssp 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page