Interactive exploration of an open problem: determining the worst-case approximation ratio of the iterative rounding algorithm for the Gasoline problem and its d-dimensional generalization.
Open ProblemThe Gasoline problem seeks a minimum-cost permutation matching fuel supplies to consumption demands along a circular route. The iterative rounding algorithm solves an LP relaxation over doubly stochastic matrices and fixes columns one by one.
Originally from Lovasz's Combinatorial Problems and Exercises (1979): gas stations on a circular route each provide fuel x_i and require fuel y_i to reach the next station. The optimization version minimizes the tank capacity needed.
Each x_i, y_i become d-dimensional vectors. The bound must hold coordinate-wise for each dimension j in [d]. This models scheduling with d types of non-renewable resources.
| Year | Authors | Result |
|---|---|---|
| 1979 | Lovasz | Classical gasoline puzzle existence proof |
| 1998 | Kellerer et al. | Stock size: 3/2-approx; 2-approx algorithms |
| 2016 | Newman, Roglin, Seif | 1.79-approx (alternating); 2-approx via doubly stochastic LP |
| 2022 | Rajkovic | Iterative rounding algorithm; conjectured 2-approx |
| 2026 | Nikoleit et al. | Counterexamples via Co-FunSearch: ratio > 2 for d ≥ 2 |
The integer program uses a permutation matrix Z in {0,1}^{nxn}. The LP relaxation replaces this with Z ≥ 0, doubly stochastic. By the Birkhoff-von Neumann theorem, the feasible set is the Birkhoff polytope.
Each step requires solving O(n) reduced LPs. With n columns, the total is O(n^2) LP solves, each of size O(n^2) variables. Overall: O(n^5) time.
Maximum observed IR/OPT ratios from 240 random instances with exact solutions:
Maximum and mean IR/OPT ratios vs. dimension d. The conjectured 2d bound grows linearly while observed ratios remain near 1.0-1.2.
| d | n | Max | Mean | Std | 2d |
|---|---|---|---|---|---|
| 1 | 5 | 1.183 | 1.019 | 0.046 | 2 |
| 2 | 5 | 1.097 | 1.011 | 0.027 | 4 |
| 3 | 4 | 1.131 | 1.016 | 0.031 | 6 |
| 4 | 4 | 1.024 | 1.004 | 0.008 | 8 |
Integrality gap (OPT_IP / OPT_LP) across 180 instances. For d=1, the LP provides a valid lower bound (gap ≥ 1). For d ≥ 2, the sum-vs-max objective mismatch causes the measured ratio to fall below 1.
| d | k | |X| | IR cost | OPT | Ratio |
|---|---|---|---|---|---|
| 2 | 5 | 62 | 122 | 36 | 3.389 |
| 2 | 6 | 126 | 250 | 68 | 3.676 |
| 3 | 5 | 124 | 186 | 40 | 4.650 |
Generate random Gasoline problem instances and visualize the prefix-sum deviation under different permutations.
Adjust parameters and click Generate to create a Gasoline problem instance.
For the current instance, compare the prefix-sum profiles under different algorithms:
All code and data are available in the project repository:
code/experiments.py - Experiment runner (generates data/)code/generate_figures.py - Figure generation (generates paper/figures/)data/ - CSV files with all experimental resultspaper/main.tex - LaTeX source (ACM sigconf format)