Skip to content

jjhbw/hospital-schedule

Repository files navigation

image

Code for https://barkeywolf.consulting/posts/hospital-scheduling/

Run locally

To run the solver, use:

uv run main.py

The solutions can be rendered using:

uv run vis.py ${solution directory}

Create a video animation of the rendered solutions using for example:

ffmpeg -y -framerate 20 -pattern_type glob -i "./solutions/20250614-114856/*.png" -c:v libx264 -pix_fmt yuv420p schedule.mp4

Google Cloud Batch job

Build the docker container image that contains the code and the input data. In a production scenario you would probably separate the code from the data, but this was simpler to get up and running. You can adapt the submit.sh script and use it to submit the job.

About

Code for my post on hospital shift scheduling using OR-Tools

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published