Skip to content

pganalyze/cp-sat-python-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CP-SAT Python Example

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.

Requirements

Python 3.8+ is required, as well as ortools 9.9+:

$ python -m pip install ortools>=9.9

Try it

Running the model is as simple as:

$ python shift_schedule.py

Try it for yourself and tweak the schedule!

LICENSE

This project is licensed under the MIT License, see LICENSE for details.

Copyright (c) 2024 Duboce Labs, Inc. (pganalyze)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages