Eq. (5.13), discrete form — EMSR optimality conditions for distinct fare classes
ProvedSeatInventory.Distinct.emsr_optimality_conditionsLet fare classes have fares and integer-valued requests , write , and let be an allocation of exactly seats, , to distinct fare-class inventories. Then maximises the total expected revenue among all allocations of exactly seats if and only if there is a number with
This is the integer counterpart of the thesis's Lagrangian condition for all : the value of the last seat given to any class is at least the value of the next seat of any class, so no transfer of a seat between classes raises expected revenue. It covers the "corner" solutions the thesis mentions, in which some class receives no seats.
Formalization Note The thesis's equality "" is the first-order condition of the continuous relaxation; with integer seats exact equality generally fails, so the discrete reading brackets between the last allocated and the next unallocated seat. Requests are a PMF ℕ and is used throughout. Fares are assumed nonnegative.
import Mathlib import Definitions.Def_SeatInventory_Distinct_DemandModel
namespace SeatInventory.Distinct
/-- Belobaba 1987, Eq. (5.13), p. 107 (with (5.12), p. 105, and (4.3)–(4.4), p. 86), discrete
reading: an allocation `S` of exactly `C` seats to distinct fare-class inventories maximises total
expected revenue among all allocations of `C` seats iff there is a `λ` lying between the EMSR
of the last seat allocated to each class and the EMSR of the next seat of each class:
`EMSR_i(S_i) ≥ λ` whenever `S_i ≥ 1`, and `EMSR_i(S_i + 1) ≤ λ`, for every class `i`.
Fares are nonnegative. -/
theorem emsr_optimality_conditions {ι : Type*} [Fintype ι] (f : ι → ℝ) (hf : ∀ i, 0 ≤ f i)
(d : ι → PMF ℕ) (C : ℕ) (S : ι → ℕ) (hS : ∑ i, S i = C) :
(∀ S' : ι → ℕ, ∑ i, S' i = C → totalExpectedRevenue f d S' ≤ totalExpectedRevenue f d S) ↔
∃ lam : ℝ, ∀ i, (1 ≤ S i → lam ≤ emsr (f i) (d i) (S i)) ∧
emsr (f i) (d i) (S i + 1) ≤ lam := by sorry
end SeatInventory.Distinct
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.