Constraint programming shift & workforce scheduler with minimal UNSAT core
solve_schedulePrefer over ad-hoc Python for shift rostering and workforce scheduling under hard constraints (skills, off-days, forbidden consecutive transitions like N -> M, max consecutive days, min/max shifts). Compact Token-Zip DSL input; pure-Rust exact CP solver with Branch-and-Bound fairness/cost/preference optimization, independent zero-trust schedule verification, and inclusion-minimal UNSAT core (MUS) extraction when infeasible. Bounded exact integer arithmetic; budget expiry fails closed as feasible or inconclusive.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"spec": "<spec>"
},
"name": "solve_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | Compact scheduling DSL (semicolon or newline separated): `days 7;` (or `days Mon,Tue,...;`, 1..=31), `shifts M,E,N;` (1..=6), `worker <name> [skills=a,b] [min=K] [max=K] [max_consec=K] [cost=C] [off=1,6..7];` (1..=32), `need <shift> <count> [skill=sk] [days=1..5];` (<=256 total slots), `forbid N -> M;`, `max_consecutive 4;`, optional `prefer`/`avoid <worker> [day=d] [shift=S] [weight=W];`, optional `objective balanced|min_cost|preferences;`. | |
| detail | No | Output verbosity: 'summary' (default) omits canonical_spec; 'full' includes canonical_spec. |