pkg/inventory had EMSR-b and no forecaster. History is the forecaster:
the booking record of one flight's cabin over its past departures, by
time frame and by the lowest class on sale, and the class controls the
record gives.
Bookings are divided by the time on sale, which unconstrains them. The
marginal revenue transformation of Fiig, Isler, Hopperstad and Belobaba
(2010) turns each strategy's demand and revenue into independent demands
at adjusted fares, which corrects for buy-down. EMSR-b then needs no
change.
The tests hold MarginalRevenue and EMSRb against tables 1 and 2 of the
paper, and run example 5 of Cooper, Homem-de-Mello and Kleywegt's
spiral-down paper: the manager's model protects 70 seats, the best level
is 95, sales read as demand spiral to 7, and fare adjustment holds 94.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q