Back to projects
Solo project

Shift Scheduler

Student groups and volunteer teams need to cover shifts without double-booking people or assigning them to roles they can't fill. I built Shift Scheduler so members can pick available shifts on their phones, and organizers can review coverage, adjust assignments, and publish a schedule. The demo uses a sample pantry and runs locally.

24 of 24 feasible trials completedHybrid scheduling filled every feasible trial in a fixed local benchmark. Greedy and standalone CP-SAT each filled 21 of 24.
  • C#
  • Angular
  • CP-SAT
A member submits their availability on a phone. The organizer generates and reviews a draft, publishes it, and the member sees their assigned shifts. Open video · Open screenshot

Filling shifts under a deadline

The hybrid solver uses a complete greedy schedule as a starting point for OR-Tools CP-SAT. It keeps the better valid result when the time budget expires. A separate validator checks coverage, qualifications, availability, overlaps, and locked assignments.

In the fixed local benchmark, hybrid completed 24 of 24 feasible trials. Greedy and each standalone CP-SAT mode completed 21. Greedy ran faster on every tested dataset. Hybrid handled a greedy trap and retained complete greedy schedules on larger cases where search timed out.

Implementation references

Keeping drafts separate from the published schedule

Organizers can edit or lock assignments after reviewing a draft. Transactional revision checks reject stale edits, and members keep seeing the original shift details until a new revision is published. The release ran the same 31 database integration cases against SQLite and real SQL Server 2025 Developer on Linux.

I designed the workflow and used AI-assisted development for implementation and validation. The release README shows how to start the local synthetic demo.

Phone view with checkboxes for the shifts a volunteer can work
Members select the shifts they can work. · Open full-size image
Phone view of a published schedule listing shifts by day
Members see the published schedule and can export assignments to a calendar. · Open full-size image