Skip to main content

Ant colony scheduling optimisation package

Project description

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.

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

aco_djssp-0.1.1.tar.gz (869.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aco_djssp-0.1.1-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file aco_djssp-0.1.1.tar.gz.

File metadata

  • Download URL: aco_djssp-0.1.1.tar.gz
  • Upload date:
  • Size: 869.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for aco_djssp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fe4fbbc7bbfa54b537ac7a147dc097c09076e90acecafa3c1a197eff7d47b49b
MD5 79c42da0b37109993442f737b0506c9a
BLAKE2b-256 4a76ba9a5a902c19893675fca7d24166877fbc1f826a6e16bd286365295c0ba4

See more details on using hashes here.

File details

Details for the file aco_djssp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aco_djssp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for aco_djssp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4521226c0f43e86b97e33ffad2dc68081511ccce9813e8041cb4fb33b2654221
MD5 9ffd2cfacf7195088959a8769fadd57e
BLAKE2b-256 3ce06d81a1b97bab675389b640f30a9595eba1ca1d72a5f097e6b5e14fbf6a9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page