Abstract
We study joint replenishment and rationing in a capacitated inventory system with two priority classes and fixed ordering costs. Deterministic high-priority demand must be met each period, whereas stochastic low-priority demand may be lost. We focus on (s,k,S) policies, which order up to S when inventory falls below s and reserve inventory for k periods of future high-priority demand. Under full distributional information, a fluid approximation shows that this policy class is first-order asymptotically optimal, justifying it as the learning benchmark. For online learning, where the low-priority demand distribution is unknown, a key analytical challenge is that rationing can make the objective discontinuous, breaking the Lipschitz argument for uniform grids used in the existing literature. Because the discontinuities stem from a few known inventory levels, our discontinuity-aware grid adds exactly these levels to a uniform grid and restores approximation error proportional to the mesh size. To learn from censored sales, we collect data under the grid policy offering the most inventory to low-priority demand; its sales, censored or not, exactly reconstruct a replenishment cycle of every grid policy. We develop GRACE (Grid-based Replay with Adaptive Candidate Elimination), which draws its data-collection policies from the surviving candidates and attains regret O(\sqrt{T\log T}) while revising its policy only logarithmically often; a lower bound on a censored-newsvendor subclass shows this rate is optimal up to a logarithmic factor. Numerically, GRACE outperforms an explore-then-commit baseline when lost-sales penalties are moderate or high.