This is the complete source code of the CP-SAT example described in this blog post. In this example, a constraint programming model describes a work schedule for the employees of a small store.
Python 3.8 is required, as well as ortools
9.9 :
$ python -m pip install ortools>=9.9
Running the model is as simple as:
$ python shift_schedule.py
Try it for yourself and tweak the schedule!
This project is licensed under the MIT License, see LICENSE for details.
Copyright (c) 2024 Duboce Labs, Inc. (pganalyze)