Many operational systems, such as microgrids deciding which generators to switch on or taxi fleets deciding which car takes which rider, are run by repeatedly solving a small integer program over the next few hours. The system executes only the first decision of that plan, then slides the window forward and solves again. When the forecast of the next few hours is built from only a handful of past days, the program fits the noise in those days. It reports a cost that is too optimistic, and it commits to on/off or assignment decisions that flip depending on which days happened to be in the sample. The standard defense is to hedge against every distribution close to the sample, with the size of that hedge set by a statistical test so that a cost guarantee holds. That defense was designed for one-shot decisions. It certifies the whole plan, yet in a rolling horizon most of the plan is never executed, because later steps are re-solved with fresh information.
This note proposes to calibrate the hedge against what the system actually does. The robustness level, and how far into the window it applies, are chosen by replaying the full rolling procedure on held-out past days, and are not set by a guarantee on the open-loop plan. Our claim is that with 5 to 40 historical days this closed-loop calibration gives lower realized cost than both unhedged sample averaging, which over-trusts the sample, and test-calibrated robustness, which over-hedges because it ignores later re-solving. We also expect the advantage to disappear as the sample grows, and that disappearance is itself a falsifiable prediction.
Core Claim
In a rolling-horizon stochastic integer program, the damage from a small sample concentrates in the committed first-step integer decisions, such as a generator startup or a vehicle dispatch. Errors in the later part of the window are largely repaired by the next re-solve. The right amount of robustness is therefore smaller than what static finite-sample theory prescribes, and its size depends on the system's own re-optimization dynamics. Neither sample size alone nor a goodness-of-fit test can supply it. We make this concrete with a window problem that hedges only the first $k$ stages of the window. At time $t$, with $\hat P_N$ the empirical distribution of window uncertainty $\xi=(\xi_1,\dots,\xi_w)$ built from $N$ past days, it solves
$$\min_{x_t \in X}\;\max_{Q:\,d(Q_{1:k},\hat P_{N,1:k})\le \rho}\;\mathbb{E}_{Q}\big[C_w(x_t,\xi)\big],$$
Here $x_t$ is the first-step integer decision, $C_w$ is the window cost including later-stage decisions, $d$ is a distance between distributions, and $\rho$ is the ambiguity radius, meaning the size of the set of distributions hedged against. The distance applies only to the first $k$ stages, while stages beyond $k$ keep their empirical weights. The two knobs are then selected by leave-one-day-out closed-loop replay:
$$(\rho^\star,k^\star)=\arg\min_{\rho,k}\;\frac{1}{N}\sum_{i=1}^{N}\mathrm{Cost}_i\big(\pi^{(-i)}_{\rho,k}\big).$$
In this criterion, $\pi^{(-i)}_{\rho,k}$ is the full rolling policy built from all days except day $i$, and $\mathrm{Cost}_i$ is its realized cost when run through day $i$. With $d$ taken as total variation over the $N$ empirical scenarios, the inner maximization is over reweightings of a finite scenario set. It dualizes into $O(N)$ extra linear variables and constraints, so the window problem remains a mixed-integer program of roughly the original size. The hard part is not tractability. It is choosing $(\rho,k)$ honestly from very few days.
Relation to Prior Work
Two papers motivate the gap. Robust Sample Average Approximation shows that plain sample averaging breaks its promised coverage at small $N$. It repairs this by hedging over a set of distributions sized by a goodness-of-fit test, and keeps nominal 80% coverage in static newsvendor and portfolio problems. We reuse its hedging idea but not its calibration target. Its guarantee concerns a single, fully executed decision in a convex problem, while ours concerns closed-loop integer commitments with re-solving. The Blind Men and the Elephant argues that offline stochastic programs mis-model the recourse actually available online, and calls for "online-aware offline optimization." Our calibration criterion is one literal instance of that call, since the recourse being modeled is the re-solve itself.
Two lines of work constrain the design. Bounds for Multistage Mixed-Integer Distributionally Robust Optimization shows that hedged multistage integer programs can be bounded efficiently. It reports a −2.11% gap at a 24.8× speedup on six-stage production planning. It also shows that tightness does not grow monotonically with subgroup size, which warns us not to assume the benefit of hedging is monotone in $k$ or $\rho$. That is why we search a grid over both knobs rather than fix a schedule. Learning-theoretic work on solvers, including Provably Data-driven Lagrangian Relaxation (minimax rate $\Theta(s/\sqrt N)$ for learned multipliers) and Generalization Guarantees for Learning Branch-and-Cut Policies, bounds how many instances a learned component needs, but assumes stationary instance distributions and says nothing about rolling recourse. Our method learns only two scalars, so its estimation burden is tiny by comparison. The selection among grid points is still exposed to the winner's curse, and we treat that below. Overcoming the Optimizer's Curse documents the same failure mode we target, an optimizer exploiting regions where data are sparse, but in continuous neural surrogates. We transpose the diagnosis to scenario-based integer programs.
The receding-horizon methods supply the setting. CHASEpp gives a worst-case competitive guarantee for microgrid startup scheduling with a lookahead window and needs no distributional data. Online Vehicle Routing shows that rolling re-optimization of taxi dispatch beats greedy dispatch at scale. Robust Data-Driven Receding Horizon Control shrinks an uncertainty set online from 10 measurements, but only for continuous linear systems with a one-step horizon. None of these three calibrates robustness to a small historical sample of integer-decision traces.
Research Program
We will build a rolling-horizon engine with four components: a scenario window built from $N$ past days, the hedged window program above solved by an off-the-shelf solver, a first-step commit, and a replay harness that runs the entire policy through any held-out day and records realized cost. Everything else in the study is a comparison on top of this harness.
The primary domain is the San Francisco microgrid setting from the CHASEpp work. Its hourly campus electricity and heat demand, nearby wind generation, and PG&E electricity and gas prices, together with combined-heat-and-power generators with startup costs, give binary commitment decisions whose errors are expensive and visible. The second domain is Manhattan taxi dispatch on the NYC Taxi and Limousine Commission data used by Online Vehicle Routing: 26,109 rides from 12:00 to 1:30 PM on April 15, 2016, on a road network of 4,324 intersections. Here the uncertainty is future ride requests within the window, and the commitment is which vehicle serves which request. Because a single 90-minute slice gives few independent days, we will build the historical sample from the same weekday and time slot across different weeks of the TLC record, and we will run a fleet-subsampled instance so that nested replays stay affordable. If the full 15-second budget cannot be met with hedging, that becomes a finding about cost, not a reason to drop the domain.
We will vary $N$ over 5, 10, 20, 40 and 80 days, and vary the window length. The winner's curse in selection is real. Picking the best $(\rho,k)$ out of a grid on 10 days will make the chosen configuration look better than it is. All reported performance therefore comes from an outer loop: calibration uses only the training days, and evaluation uses days never touched. We will report the gap between inner replay cost and outer realized cost as a direct measure of selection optimism.
Beyond realized cost, we will measure commitment instability, defined as the fraction of first-step integer decisions that change when the training days are bootstrap-resampled. We will also measure the optimism gap between the cost the window program predicts and the cost that is realized. The mechanism claim predicts three things. The closed-loop $\rho^\star$ should be systematically smaller than the goodness-of-fit radius. The optimal $k^\star$ should be short relative to $w$. Most of the gain should come from reduced instability of startup or dispatch decisions.
Baselines
The do-nothing reference is certainty-equivalent receding horizon control. It feeds the mean of the $N$ past days into the same window integer program as a point forecast and commits the first step, with the identical solver, window and time budget. It is the default in practice. The CHASEpp paper reports that it "can fail miserably if the forecast is slightly off or too short," which is exactly the small-sample regime. Our method beats it if held-out realized cost is lower at every $N \le 40$.
The second baseline is rolling sample average approximation: the same window program with the $N$ days as equally weighted scenarios and no hedging ($\rho=0$). It isolates whether hedging helps at all. The third is rolling Robust SAA, the same hedged program with the full window hedged ($k=w$) and $\rho$ set by the goodness-of-fit confidence region of Robust Sample Average Approximation. This is the strongest principled competitor, because it is the only method in the file with a finite-sample guarantee. Its reported result is maintained 80% nominal coverage in static newsvendor and portfolio problems. We found no reported result on Lacuna for rolling-horizon or integer settings.
The fourth is CHASEpp itself. Its data-free worst-case competitive ratio of at most $3-2/(1+O(1/w))$ comes within 9% of the theoretical lower bound with a 3-hour window. That figure is a competitive-ratio bound, and we found no reported result on Lacuna for realized cost of CHASEpp under small historical samples. On taxi data, the strongest reported point is the local-backbone rolling method at a 9.13% profit gain over greedy dispatch, with 2-OPT at 4.03%, both from Online Vehicle Routing. We will rerun local backbone with its forecast replaced by each of our scenario constructions, so that it becomes the solver inside every arm rather than a separate competitor.
Two ablations isolate the key ingredient. The first uses the same hedged program and the same grid over $(\rho,k)$, but selects them by open-loop criteria, meaning each window's predicted cost evaluated on held-out days without replaying re-solves. If it matches closed-loop selection, the closed-loop idea contributes nothing. The second fixes $k=w$ and calibrates only $\rho$ in closed loop, which tests whether hedging just the near stages matters.
Fairness is enforced in four ways. All arms get the same training days. All tuned arms get the same grid size, so that they face the same winner's-curse exposure. All arms get the same per-window solver time limit and are evaluated on the same held-out days.
Why not just…?
Why not just use the point forecast and re-solve often? Frequent re-solving does repair later-window errors, and that is precisely our argument for why full-window hedging is too much. It does not repair the first-step commitment, which is paid immediately and, for startups, carries a fixed cost. The CHASEpp authors report that plain receding horizon control degrades sharply under noisy or short forecasts. Our instability metric will show directly whether point-forecast commitments flip more under resampling.
Why not just use sample averaging, since it is consistent? Consistency is an asymptotic property, and at $N=10$ Robust Sample Average Approximation shows that its promised bounds are routinely violated. The optimism-gap measurement tests whether that failure persists in closed loop. It might not: re-solving could wash it out. If it does wash out, rolling SAA will match our method, and we will report that hedging is unnecessary in these domains.
Why not just use a data-free competitive algorithm like CHASEpp and skip the sample entirely? This is the most serious threat on the microgrid domain. CHASEpp cannot overfit because it uses no distribution, and its guarantee is strong. Its weakness is that it is built to be safe on the worst case, so it may leave money on the table on typical days. The comparison at each $N$ settles this. If CHASEpp wins at $N=5$ and loses at $N=40$, the crossover point is itself a useful result, and we will state it rather than argue it away.
Why not just bag the decision, majority-voting the first step over bootstrap SAA solves? Bagging attacks commitment instability directly and needs no tuning, so it is a genuine alternative and we include it as a baseline. It cannot become more cautious in the direction of cost asymmetry, for example preferring to keep a generator on when shortfalls are expensive, whereas the hedged program can. If bagging matches closed-loop hedging, then stabilization and not hedging is the active ingredient, and we would reframe the method accordingly.
Proposed Experiments and Decisive Checks
The central experiment is a grid over $N$, window length and domain. In each cell we report held-out realized cost relative to the hindsight-optimal offline schedule for every arm, with confidence intervals over many random draws of training days. Four outcomes would decide the question.
The first is that closed-loop hedging beats both rolling SAA and rolling Robust SAA at $N \le 20$ on the microgrid, with the margin shrinking toward zero by $N=80$. A persistent margin at large $N$ would suggest we are fixing a modeling error rather than a small-sample effect.
The second is that the open-loop-calibrated ablation loses most of that margin. That result would establish that replaying the re-solves is what matters.
The third is that the selected $\rho^\star$ sits below the goodness-of-fit radius and the selected $k^\star$ is short. Together these confirm the mechanism: later re-solves repair later-window errors.
The fourth is a shift test. We calibrate on one season of microgrid days and evaluate on another, and calibrate on weekday taxi slots and evaluate on Fridays. We then check whether closed-loop calibration degrades more gracefully than the test-based radius, which assumes the sample reflects the test distribution.
If none of the hedged variants beats CHASEpp or bagging anywhere, we will report that the small-sample problem in rolling integer control is better addressed by data-free or stabilizing methods.
References
- Robust sample average approximation
- The Blind Men and the Elephant: Integrated Offline/Online Optimization Under Uncertainty
- Bounds for Multistage Mixed-Integer Distributionally Robust Optimization
- Provably Data-driven Lagrangian Relaxation for Mixed Integer Linear Programming
- Generalization Guarantees for Learning Score-Based Branch-and-Cut Policies in Integer Programming
- Overcoming the Optimizer's Curse: Obtaining Realistic Prescriptions from Neural Networks
- Competitive prediction-aware online algorithms for energy generation scheduling in microgrids
- Online Vehicle Routing: The Edge of Optimization in Large-Scale Applications
- Robust Data-Driven Receding Horizon Control1