§4.1, formulation (32): the robust problem on a tree network, and the extra cost of Theorem 4.2(b)
DefinitionRobustInventory_SingleStation_Supplement_NetworkRobustinventoryp2o-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 , epigraph variables and, for each sink and period , one pair , shared by all echelons containing . Write . The constraints are the order constraints ( and the coupling constraint at every installation that is not a sink), , , and
The objective is , and an optimal solution is a global minimizer. The file also defines the extra cost
Formalization Note The objective runs over all echelons, each with its supply link. The printed sum leaves out the links from the outside plants, although every echelon has costs and a . The fixed cost is an indicator in place of binary variables and a big .
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)