arXiv:2608.30419cs.AIAug 2026

Manuscript Offprint

arXiv:2608.30419

From Metaheuristics to Exact Methods: A CP-SAT Approach for Multi-Objective Healthcare Workforce Scheduling

Vipul Patel, Anirudh Deodhar, Dagnachew Birru

Vipul Patel 1^{1}, Anirudh Deodhar 1^{1}, Dagnachew Birru 1^{1}

1^{1}Phi Labs, Quantiphi

{vipul.patel, anirudh.deodhar, dagnachew.birru}@quantiphi.com

Abstract. Healthcare workforce scheduling is a well-established NP-hard combinatorial optimization problem requiring the simultaneous satisfaction of labor regulations, patient coverage requirements, employee preferences and operational cost objectives. Existing approaches spanning genetic algorithms, integer programming and constraint programming - typically model simplified problem instances with 6-12 constraints at shift-level granularity and critically, cannot guarantee that the produced schedule satisfies all regulatory requirements. They also lack explicit support for multi-role, multi-skill workforce heterogeneity (e.g., nurses with Chronic or Neurological disease certification or supervisory responsibilities); mandatory break scheduling with midpoint placement control; acuity-weighted workload equity across employees; sub-shift temporal granularity enabling demand-driven staffing; inter-week schedule stability for recurring staff; and cross-midnight shift patterns (e.g., night shifts spanning 22:00-07:00), which appear in virtually every 24-hour healthcare facility.

This paper presents CP-SAT: a Constraint Programming formulation for multi-role, multi-skill healthcare workforce scheduling. CP-SAT enforces 14 hard constraints as mathematically inviolable requirements guaranteeing zero regulatory violations in every produced schedule, while optimizing 15 soft objectives through a unified weighted penalty function. Key contributions include: a shift-window variable decomposition enabling mandatory break scheduling with centrality control; acuity-weighted workload equity; multi-granularity temporal resolution from 15 minutes to 1 day; inter-week schedule stability; and a grid-offset preprocessing technique that maps any cross-midnight shift type into a single scheduling day without any structural changes to the solver.

CP-SAT is evaluated across 18 problem instances: five synthetic hospital units (10-33 nurses, 7-day, 30-minute granularity), 10 INRC-II public benchmark instances (5-80 nurses, up to 8-week horizons) and 3 NRP-23 compatible instances (10-25 nurses, 1-4 weeks) with cross-midnight Night shifts. Results show: zero hard-constraint violations across all 18 instances by construction; proven optimality on INRC-II n005w4 (objective 118, gap 0.0%, 104 seconds) at shift-level granularity; feasible schedules for INRC-II instances scaling to 179,800 variables and 351,425 constraints (80 nurses); service quality improved by 50-67% over MOGA; and model sizes scaling near-linearly at ~4,400 variables per employee. The formulation enforces 29 total constraints (14 hard + 15 soft), nearly three times the industry average.

1 Introduction

The assignment of employees to work shifts across a planning horizon - while satisfying labor law compliance, coverage requirements, skill constraints, employee preferences and cost targets - is a fundamental operational challenge in healthcare management. Formally, it belongs to the class of NP-hard combinatorial optimization problems [3] and has been studied under the headings of the Nurse Rostering Problem (NRP), the Nurse Scheduling Problem (NSP) and more general workforce scheduling models [16]. The problem is practically significant because virtually every hospital, clinic and long-term care facility worldwide must produce compliant schedules on a weekly or biweekly cycle. A schedule that violates even a single labor regulation - such as insufficient rest between shifts or assignment during declared unavailability - constitutes regulatory non-compliance and may pose direct patient safety risks.