Standard models in production planning and industrial project management have long relied on the classical resource-constrained project scheduling problem to coordinate complex tasks across finite machine and human resources. However, conventional benchmarks and traditional algorithms historically depend on an unrealistic simplification: once an assigned task commences, it is assumed to proceed continuously until completion without interruption. Actual manufacturing environments and production floors rarely adhere to such uninterrupted timelines, as human operators and machinery routinely operate within structured shift patterns, pause for lunch breaks, halt during nights and weekends, and observe official statutory holidays. When an operation requiring three work-hours begins late on a Friday afternoon, it cannot realistically finish within three calendar hours because non-working periods inevitably intervene. To bridge this divide, researcher Md Aftab Uddin and co-authors Jaafar Gaber, Pierre Petitjean, and François Cortinovis have presented calrcpsp, a dedicated, pure-Python open-source scheduling library that rigorously embeds real-world calendars into resource-constrained scheduling without modifying underlying labor durations.
While mathematical formulations incorporating calendar constraints date back decades to foundational works such as those by Franck and colleagues, established algorithmic test sets have historically encoded calendar availability only indirectly as generic periods of resource absence. In those older frameworks, operational shifts, employee lunch breaks, and regional public holidays were never represented as structured, machine-readable computational entities. A comprehensive benchmark format that finally stores work calendars as first-class structured objects was recently introduced under an open Creative Commons Attribution 4.0 International license. This benchmark repository encompasses twelve distinct problem instances spanning from five to one thousand individual tasks across four specific industrial scale tiers. The instances capture three standard working arrangements—including a standard single-shift day, a two-shift working day, and continuous twenty-four-hour operations—alongside a heterogeneous pool of industrial machinery and workers characterized by formal skill matrices, as well as an extensive catalog of recorded operational disruption events.
Despite the release of this modern benchmark, researchers wishing to evaluate novel scheduling formulations previously encountered a significant technical barrier: the dataset arrived entirely without software capable of reading and processing its specialized structure. Consequently, any research group seeking to benchmark an optimization technique was forced to build extensive boilerplate code wholly tangential to their actual algorithmic ideas. Specifically, investigators had to develop arithmetic functions capable of converting accurately between calendar timestamps and accumulated labor hours, implement assignment heuristics matching task skill requirements to qualified personnel, and craft rigorous verification routines to validate schedule feasibility. Overlooking technical nuances in these supporting layers frequently produced subtle errors. For example, evening shifts starting at 17:00 and concluding at 01:00 cross midnight into the subsequent day, meaning that a statutory holiday must excise only the post-midnight hours rather than corrupting earlier work. Furthermore, naive timeline scanning creates discrete quantization errors and scales poorly with long horizons, while academic definitions of calendar compliance have remained inconsistent across literature.
Existing computational scheduling packages and general-purpose solvers fail to provide a complete, integrated solution to these calendar-aware scheduling needs. State-of-the-art constraint programming engines like CP-SAT offer formidable solving capabilities for standard scheduling formulations but lack any native representation of working calendars, forcing engineers to manually transcribe shifts, breaks, and holidays into raw intervals. Specialized toolkits such as PyJobShop interface with underlying constraint engines and permit resources to maintain interval-based pauses, yet they still require practitioners to explicitly expand recurring shift templates, midnight-crossing rotations, and calendar exceptions across planning horizons, while failing to map solved timelines back onto real calendar dates. Meanwhile, established parsing utilities like the psplib package process diverse project formats but omit stored calendar specifications entirely. Commercial enterprise planning suites, including Microsoft Project and Primavera P6, handle industrial working calendars effectively, but their proprietary, closed-source nature prevents automated experimental scripting and benchmark ingestion. The calrcpsp library directly fills this software gap by delivering an open-source framework covering parsing, calendar arithmetic, skill allocation, and dual-criteria compliance reporting.
To ensure high computational efficiency and mathematical exactness, calrcpsp implements an architectural separation between algebraic sequencing and physical time. The library organizes its workflow across nine discrete modules: instance parsing, calendar modeling, skill assignment, max-plus algebraic construction, scheduling execution, schedule data representation, metrics calculation, disruption rescheduling, and external command-line interfaces. Instead of folding time-dependent calendar variations into core optimization matrices—which would invalidate mathematical constancy because a three-hour job consumes three elapsed hours on Monday but over sixty-four elapsed hours across a weekend—the package performs all recursive scheduling strictly in continuous work-hours. The physical calendar is applied downstream as a mathematically exact change of time base via a cumulative work-time function and its inverse. The underlying calendar engine represents work periods as a piecewise linear schedule of boundary breakpoints evaluated lazily through logarithmic binary searches. Requiring only NumPy as a runtime dependency alongside CPython 3.10 or newer, the lightweight library avoids compiled extensions or external solvers.
Because the standardized benchmark format describes required skills without dictating explicit resource assignments, calrcpsp introduces automated allocation logic to determine worker and machine pairings deterministically. In published industrial instances, individual tasks demand multifaceted skill combinations that no single resource possesses, leaving between 3 and 179 tasks per instance partially uncovered and resulting in mean achieved skill coverage scores between 0.700 and 0.875. In resolving these assignments, the authors revealed a pronounced operational trade-off: greedily prioritizing highest skill proficiency concentrates excessive workloads onto rare multi-skilled specialists, which inflates total project duration from 46.9 to 252.9 work-hours on a 500-task manufacturing instance. To mitigate this severe bottleneck, calrcpsp implements a load-balanced assignment heuristic by default, selecting qualified candidates carrying the lowest accumulated workload while breaking ties by skill coverage, proficiency, and identifier. The library rigorously defines schedule feasibility by verifying that all precedence relations hold, no resource is double-booked, and all labor occurs strictly within designated working periods, reporting achieved skill coverage as an independent metric.
Once assignments are established, calrcpsp executes its core scheduling algorithms through max-plus semiring matrix algebra, where matrix addition corresponds to selecting maximum values and multiplication corresponds to standard addition. Precedence constraints define directed edges weighted by predecessor task durations, while resource sharing is serialized into an acyclic graph following topological ordering via Kahn’s algorithm applied in file order. By adding directed edges solely between consecutive tasks assigned to the same unit, the algorithm reduces dense resource graph structures from quadratic complexity down to linear chains without altering project solutions. The library can evaluate schedules either through Kleene closure using a cubic-time Floyd-Warshall formulation or via an optimal linear topological recursion. Evaluated across all twelve benchmark instances on an Apple arm64 machine under CPython 3.13.2, default solve times remained remarkably rapid, spanning between 1.05 and 17.60 milliseconds. Runtime scaling proved non-smooth because calendar breakpoint searches dominate small and medium instances; notably, the 1000-task continuous-operation instance solved in 14.52 milliseconds, outpacing the 750-task instance at 17.60 milliseconds.
The package clarifies calendar performance by introducing and reporting two distinct compliance metrics across every generated schedule. Work-time compliance calculates the exact fraction of scheduled labor that falls within legitimate working hours, serving as an absolute correctness invariant that achieved a perfect score of 1.000 across all experimental runs. Conversely, uninterrupted compliance reflects the proportion of tasks that execute from start to finish without pausing across non-working intervals, lunch breaks, or weekends. Because calrcpsp allows tasks to pause naturally when shifts conclude, uninterrupted compliance varied between 0.440 and 1.000, with the two measures diverging by up to 0.56 on identical problem sets. The distinction was highlighted on a six-task manufacturing demonstration: a task requiring 6.93 work-hours beginning at 08:00 on Monday completed at 15:55 rather than 14:56 because a scheduled one-hour midday lunch break paused operations. That single interrupted task constituted the entire critical path with zero float, whereas non-critical tasks carried between 4.40 and 5.76 hours of float.
To rigorously evaluate solution quality, the authors benchmarked calrcpsp against global optima generated by Google’s CP-SAT constraint programming solver within equivalent work-hour spaces. When evaluated under identical resource assignments, the max-plus topological sequencing yielded project makespans averaging only 7.6 percent above the proven mathematical optimum, matching the exact optimal schedule across four of the twelve instances. When CP-SAT was granted complete freedom to reassign resources from the same candidate pool, the full optimality gap averaged 14.0 percent, with true upper limits formally bounded at 20.2 and 10.6 percent on the largest unsolved cases. Crucially, the heuristic achieved this competitive makespan while maintaining identical mean skill coverage of 0.826 compared to 0.824 from the full solver. Beyond static generation, calrcpsp reliably re-solved all 34 benchmark disruption records—such as machine breakdowns and employee absences—in under 17.39 milliseconds, successfully absorbing delay within existing float in five instances without increasing total project duration while displacing an average of 9.72 percent of scheduled tasks.
Beyond benchmark research, calrcpsp operates as an independent utility capable of answering complex temporal queries for enterprise resource planning extensions, supply chain systems, and automated order-promising tools. For instance, querying the calendar engine for ten work-hours starting Wednesday at 20:00 correctly accounts for a midnight shift boundary and a full Thursday holiday, establishing completion on Friday at 11:00. The codebase features a comprehensive automated testing suite encompassing 244 tests on distributed package instances and 418 across the full benchmark, delivering 83 percent overall statement coverage and 90 percent coverage over core algorithmic modules. The authors note transparent theoretical boundaries: the max-plus solution provides an upper bound rather than a guaranteed global optimum, resources are restricted to unit capacity, and the engine currently performs full re-solves rather than incremental matrix updates upon disruption. By establishing an open-source, mathematically exact infrastructure, calrcpsp provides production scheduling research with a reliable computational foundation for evaluating realistic industrial workflows.
Subject of Research: Calendar-aware resource-constrained project scheduling in Python
Article Title: calrcpsp: calendar-aware resource-constrained project scheduling in Python
Article References: Uddin, M. A., Gaber, J., Petitjean, P., & Cortinovis, F. (2026). calrcpsp: calendar-aware resource-constrained project scheduling in Python. SoftwareX, 36, Article 103265. https://doi.org/10.1016/j.softx.2026.103265
Image Credits: AI Generated
DOI: 10.1016/j.softx.2026.103265
Keywords: project scheduling, RCPSP, calendar-aware scheduling, Python library, max-plus algebra, operations research, production planning, resource allocation, makespan optimization, work calendars, constraint programming, CP-SAT, industrial scheduling, schedule repair, shift scheduling, discrete-event systems, computational algorithms
Cite Scienmag News
Denise Maddox. (November 27, 2026). Open-Source Python Tool Solves Calendar-Constrained Industrial Project Scheduling in Milliseconds. Scienmag. https://scienmag.com/open-source-python-tool-solves-calendar-constrained-industrial-project-scheduling-in-milliseconds/
Denise Maddox. "Open-Source Python Tool Solves Calendar-Constrained Industrial Project Scheduling in Milliseconds." Scienmag, 27 November 2026, https://scienmag.com/open-source-python-tool-solves-calendar-constrained-industrial-project-scheduling-in-milliseconds/. Accessed 27 November 2026.
Denise Maddox. "Open-Source Python Tool Solves Calendar-Constrained Industrial Project Scheduling in Milliseconds." Scienmag. November 27, 2026. https://scienmag.com/open-source-python-tool-solves-calendar-constrained-industrial-project-scheduling-in-milliseconds/








