Abstract
This paper investigates the Joint Replenishment Problem with Deadlines (JRP-D) in a nonclairvoyant setting, where request deadlines are unknown upon arrival. By integrating machine learning predictions into the decision-making process, we propose the Local-Greedy algorithm. This algorithm achieves a competitive ratio of $O(\min(\eta^{1/3}\log^{2/3}(n), \sqrt{\eta}, \sqrt{n}))$, where $\eta$ represents the prediction error measured by instantaneous item inversions. Our approach is both consistent (performing well with accurate predictions) and robust (never performing worse than the standard nonclairvoyant bound), effectively bridging the performance gap between clairvoyant and nonclairvoyant optimization.
1. Introduction
In online optimization, the "clairvoyant" setting—where future information is known—often allows for significantly better performance than the "nonclairvoyant" setting. In the Joint Replenishment Problem with Deadlines (JRP-D), this gap is particularly pronounced. While clairvoyant algorithms can achieve a constant competitive ratio, nonclairvoyant algorithms are limited to $O(\sqrt{n})$, where $n$ is the number of item types. This paper utilizes the learning-augmented framework to leverage potentially noisy deadline predictions, aiming to recover near-clairvoyant performance when predictions are accurate while maintaining worst-case guarantees.
2. The Joint Replenishment Problem
The JRP-D is a fundamental problem in supply chain management and operations research. A warehouse receives requests for $n$ distinct item types, each associated with a specific deadline. To satisfy these requests, the warehouse must place orders. Each order incurs:
- A fixed joint cost ($w_0$) for the shipment itself.
- An item cost ($w_i$) for each specific item type $i$ included in the shipment.
The objective is to minimize the total cost by batching requests together to exploit economies of scale. In the nonclairvoyant version, the deadline of a request is only revealed at the moment it expires, necessitating an immediate response.
3. The Local-Greedy Algorithm
To address the limitations of existing greedy approaches, we introduce the Local-Greedy algorithm. Its design rests on several key architectural choices:
3.1 Prediction-Based Ordering and Locality
Upon arrival, each request is assigned a predicted deadline. Unlike traditional greedy algorithms that might allow a single bad prediction to disrupt the entire future schedule, Local-Greedy employs locality. It divides time into discrete "phases." Within a given phase, the algorithm only processes requests that were active at the phase's start. New arrivals are deferred to the subsequent phase, preventing cascading errors from inaccurate predictions.
3.2 Phase-Based Execution and Bucketing
A phase is triggered when a deadline expires for a request disjoint from the one that initiated the previous phase. To handle heterogeneous item costs ($w_i$), the algorithm utilizes bucketing. Items are grouped by weight, and the algorithm runs independently across these buckets. The final service schedule is a union of the services generated for each bucket.
3.3 The Error Metric: Instantaneous Item Inversions
A critical contribution of this work is the definition of the error metric $\eta$. Rather than measuring absolute temporal error, we focus on instantaneous item inversions. This metric counts the number of pairs of items whose predicted deadlines are ordered incorrectly relative to their true deadlines at any point in time. This reflects the insight that for JRP-D, the relative sequence of deadlines is more impactful than their exact values.
4. Performance Analysis
The primary result of this research is the establishment of an upper bound on the competitive ratio: $$O(\min(\eta^{1/3} \log^{2/3} n, \sqrt{\eta}, \sqrt{n}))$$
4.1 Consistency and Robustness
The algorithm satisfies two desiderata of learning-augmented design:
- Consistency: If predictions are perfect ($\eta = 0$), the algorithm's performance approaches that of clairvoyant algorithms.
- Robustness: Regardless of the prediction error, the algorithm never performs worse than the $O(\sqrt{n})$ competitive ratio of the best nonclairvoyant algorithms.
4.2 Comparative Advantage
If the prediction error is bounded such that $\eta < o(n^{3/2} / \log^2 n)$, the Local-Greedy algorithm is asymptotically superior to any traditional nonclairvoyant approach.
5. Lower Bounds
To evaluate the optimality of our results, we prove a lower bound of $\Omega(\eta^{1/3})$ for a broad class of deterministic "semi-memoryless" algorithms. This indicates that our $O(\eta^{1/3})$ result is near-optimal with respect to the chosen error metric, leaving only a small logarithmic gap for future refinement.
6. Conclusion and Future Work
This work demonstrates that even noisy predictions can significantly enhance online decision-making in replenishment problems. By focusing on the relative order of events and implementing local execution phases, we can mitigate the risks of "hallucinated" future benefits. Future research may explore closing the logarithmic gap in the competitive ratio or extending these techniques to Multi-Level Aggregation and General Delay models, where holding costs and complex penalty structures are present.
Summary updated