Why LLMs Struggle With Constraint-Based Scheduling and How Optimization Solvers Help

Imagine you are building a two-week staff schedule. The requirements look simple enough: 14 employees An Early shift and a Late shift every day Specific days off for each employee Limits on working hours and on how many days in a row someone can work Restrictions on which shifts can follow each other Each employee can work at most one weekend None of these rules is hard to understand by itself. Then you look at weekend coverage. Across the four weekend days, the staffing targets ask for 35 employee shifts. But there are 14 employees, and each can work only one weekend, which means at most two weekend days each. Fourteen times two is 28. Before I assign a single person to a single shift, at
…