Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.1, formulation (32): the robust problem on a tree network, and the extra cost of Theorem 4.2(b)

Definition
RobustInventory_SingleStation_Supplement_NetworkRobust

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventoryp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1robust-optimizationsupply-chain

This file defines the robust formulation (32) of the tree network.

The variables are the orders Di(t)D_i(t)Di​(t), epigraph variables Yi(t)Y_i(t)Yi​(t) and, for each sink sss and period ttt, one pair qs(t)q_s(t)qs​(t), (rs(τ,t))τ≤t(r_s(\tau,t))_{\tau\le t}(rs​(τ,t))τ≤t​ shared by all echelons containing sss. Write Pi(t)=∑s∈O(i)(qs(t)Γs(t)+∑τ≤trs(τ,t))P_i(t)=\sum_{s\in O(i)}(q_s(t)\Gamma_s(t)+\sum_{\tau\le t}r_s(\tau,t))Pi​(t)=∑s∈O(i)​(qs​(t)Γs​(t)+∑τ≤t​rs​(τ,t)). The constraints are the order constraints (D≥0D\ge0D≥0 and the coupling constraint at every installation that is not a sink), q,r≥0q,r\ge0q,r≥0, qs(t)+rs(τ,t)≥W^s(τ)q_s(t)+r_s(\tau,t)\ge\hat W_s(\tau)qs​(t)+rs​(τ,t)≥W^s​(τ), and

Yi(t)≥hi(Xˉi(t+1)+Pi(t)),Yi(t)≥pi(−Xˉi(t+1)+Pi(t)).Y_i(t)\ge h_i(\bar X_i(t+1)+P_i(t)),\qquad Y_i(t)\ge p_i(-\bar X_i(t+1)+P_i(t)).Yi​(t)≥hi​(Xˉi​(t+1)+Pi​(t)),Yi​(t)≥pi​(−Xˉi​(t+1)+Pi​(t)).

The objective is ∑t<T∑i=1N[Ci(Di(t))+Yi(t)]\sum_{t<T}\sum_{i=1}^{N}[C_i(D_i(t))+Y_i(t)]∑t<T​∑i=1N​[Ci​(Di​(t))+Yi​(t)], and an optimal solution is a global minimizer. The file also defines the extra cost

∑k=1N2pkhkpk+hk∑t=0T−1∑s∈O(k)As(t).\sum_{k=1}^{N}\frac{2p_kh_k}{p_k+h_k}\sum_{t=0}^{T-1}\sum_{s\in O(k)}A_s(t).k=1∑N​pk​+hk​2pk​hk​​t=0∑T−1​s∈O(k)∑​As​(t).

Formalization Note The objective runs over all NNN echelons, each with its supply link. The printed sum ∑k∑i∈N(k)\sum_k\sum_{i\in N(k)}∑k​∑i∈N(k)​ leaves out the links from the outside plants, although every echelon has costs and a YiY_iYi​. The fixed cost is an indicator in place of binary variables and a big MMM.

Definition code
import Definitions.Def_RobustInventory_SingleStation_Supplement_NetworkDynamics

namespace RobustInventory.SingleStation.Supplement.Network

open Finset

variable (G : Network)

/-- `∑_{s ∈ O(k)} (q_s(t) Γ_s(t) + ∑_{τ=0}^{t} r_s(τ, t))`, the protection term of echelon `k`
in (32) and (37). The variables `q s t` and `r s τ t` are shared by all echelons containing `s`. -/
noncomputable def protection (q : Fin G.N → ℕ → ℝ) (r : Fin G.N → ℕ → ℕ → ℝ)
    (k : Fin G.N) (t : ℕ) : ℝ :=
  ∑ s ∈ G.tree.sinksBelow k, (q s t * G.Γ s t + ∑ τ ∈ Finset.range (t + 1), r s τ t)

/-- Feasibility in the robust formulation (32). The binary variables and the big-`M` constraint
are replaced by the fixed-cost indicator in the objective. -/
def RobustFeasible (D Y q : Fin G.N → ℕ → ℝ) (r : Fin G.N → ℕ → ℕ → ℝ) : Prop :=
  G.OrdersFeasible D ∧
    (∀ s, G.tree.IsSink s → ∀ t < G.T,
      0 ≤ q s t ∧ ∀ τ ≤ t, 0 ≤ r s τ t ∧ G.What s τ ≤ q s t + r s τ t) ∧
    ∀ i, ∀ t < G.T,
      G.h i * (G.Xbar D i (t + 1) + G.protection q r i t) ≤ Y i t ∧
      G.p i * (-G.Xbar D i (t + 1) + G.protection q r i t) ≤ Y i t

/-- The objective of (32), `∑_t ∑_i (C_i(D_i(t)) + Y_i(t))`, over all `N` echelons, each with
its supply link, the links from the outside plants included. -/
noncomputable def robustObjective (D Y : Fin G.N → ℕ → ℝ) : ℝ :=
  ∑ t ∈ Finset.range G.T, ∑ i, (G.C i (D i t) + Y i t)

/-- A global minimizer of (32). -/
def IsRobustOptimal (D Y q : Fin G.N → ℕ → ℝ) (r : Fin G.N → ℕ → ℕ → ℝ) : Prop :=
  G.RobustFeasible D Y q r ∧
    ∀ (D' Y' q' : Fin G.N → ℕ → ℝ) (r' : Fin G.N → ℕ → ℕ → ℝ),
      G.RobustFeasible D' Y' q' r' → G.robustObjective D Y ≤ G.robustObjective D' Y'

/-- The extra cost of Theorem 4.2(b):
`∑_k (2 p_k h_k/(p_k + h_k)) ∑_{t<T} ∑_{s ∈ O(k)} A_s(t)`. -/
noncomputable def extraCost : ℝ :=
  ∑ k, 2 * G.p k * G.h k / (G.p k + G.h k) *
    ∑ t ∈ Finset.range G.T, ∑ s ∈ G.tree.sinksBelow k, G.A s t

end RobustInventory.SingleStation.Supplement.Network
Source
Bertsimas, Thiele, A Robust Optimization Approach to Inventory Theory, Operations Research 54(1):150–168 (2006), p. 157 (PDF 8), formulation (32); p. 158 (PDF 9), Theorem 4.2(b)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me