Skip to main content

Solving scheduling problems with constraint programming.

Project description

PyJobShop logo

PyPI License CI DOC Codecov

PyJobShop is a Python library for solving scheduling problems with constraint programming. It currently supports the following scheduling problems:

  • Resource environments: single machines, parallel machines, hybrid flow shops, open shops, job shops, flexible job shops, renewable resources and non-renewable resources.
  • Constraints: release dates, deadlines, due dates, multiple modes, sequence-dependent setup times, no-wait, blocking, and arbitrary precedence constraints.
  • Objective functions: minimizing makespan, total flow time, number of tardy jobs, total tardiness, total earliness, maximum tardiness and maximum lateness.

You can find PyJobShop on the Python Package Index under the name pyjobshop. To install it, simply run:

pip install pyjobshop

The documentation is available here.

[!TIP] If you are new to scheduling or constraint programming, you might benefit from first reading the introduction to scheduling and introduction to constraint programming pages.

Constraint programming solvers

PyJobShop uses OR-Tools' CP-SAT solver as its default constraint programming solver. We also provide support for CP Optimizer. See our documentation for instructions on how to install PyJobShop with CP Optimizer.

Examples

We provide example notebooks that show how PyJobShop may be used to solve scheduling problems.

  • A short tutorial and introduction to PyJobShop's modeling interface, available here. This is a great way to get started with PyJobShop.
  • Notebooks solving the classical machine scheduling problems such as the hybrid flow shop (here) and the flexible job shop problem (here).
  • A notebook showing how to solve different project scheduling problems, here.

Contributing

We are very grateful for any contributions you are willing to make. Please have a look here to get started. If you aim to make a large change, it is helpful to discuss the change first in a new GitHub issue. Feel free to open one!

Getting help

Feel free to open an issue or a new discussion thread here on GitHub. Please do not e-mail us with questions, modeling issues, or code examples. Those are much easier to discuss via GitHub than over e-mail. When writing your issue or discussion, please follow the instructions here.

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

pyjobshop-0.0.4.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

pyjobshop-0.0.4-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file pyjobshop-0.0.4.tar.gz.

File metadata

  • Download URL: pyjobshop-0.0.4.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.27

File hashes

Hashes for pyjobshop-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5ec48838785fedc4250d08eaa2fd13cba16e49b56ab13f3e7870f81680535024
MD5 f89962694e2044ec740f328c3930bc5c
BLAKE2b-256 ff85d7f9e3b391e9d20d65f227e614970e2238126900f6c2db490d49f72e4ef9

See more details on using hashes here.

File details

Details for the file pyjobshop-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pyjobshop-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 afae20c555b22bfba119569d27b211f56a9fe61dba4a65861ab728cec06ee6ff
MD5 1c07d5266dad26a91252d08b05d1bb7d
BLAKE2b-256 d026746bd73b1a42b878153d7f2e12bb67fc176eeb2468128f999273515b0e72

See more details on using hashes here.

Supported by

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