What does Revenue Management and Slot Packing for Space Rentals conclude, in numbers, about “Classics of East and West: Season and Soil in the Qimin Yaoshu, and Ricardo's Differential Rent”?
Answer: Chapter 7 examines "follow the season, measure the land" from the Qimin Yaoshu (protecting the same 11 days, the rule by day type expects 57679.4 yuan against 49152.1 for a single rule) and Ricardo's differential rent.
Scope of the numbers: Chapter 1 computes exact expectations for an illustrative month of 20 studio-days: protecting 10 days lifts monthly revenue from 47323.9 yuan to 57432.1 yuan, 21.36 % more, though simulation shows that protection earns less in 0.1900 of months. Marked boxes separate published evidence, runnable Python calculations (18 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 11, 49152.1, 57679.4
| pooled Littlewood level for the month: 11 of 20 days | ||||
| rule | protect we/wd | weekend | weekday | month |
| FCFS | 0 / 0 | 15740.7 | 23605.0 | 39345.7 |
| pooled | 4 / 7 | 25853.0 | 23299.0 | 49152.1 |
| by day type | 8 / 3 | 30519.7 | 27159.7 | 57679.4 |
Show the full program
# Chapter 7. p71: "follow the season" as day-type protection levels.
# Qimin Yaoshu's maxim, read as a testable claim: the same effort earns
# more when the rule follows the calendar. One studio month = 8 weekend
# days + 12 weekdays; full-day shoots 4800 yuan, short bookings that
# block a day 1800 yuan; Poisson demand by day type (示意):
# weekend full-day mean 7, short mean 10
# weekday full-day mean 3, short mean 12
# Rules: FCFS; one pooled Littlewood level split by capacity share;
# a separate Littlewood level per day type. Exact expectations as p11.
import math
F_H, F_L, N = 4800, 1800, 80
TYPES = {"weekend": (8, 7.0, 10.0), "weekday": (12, 3.0, 12.0)}
def pois(mean):
p = [math.exp(-mean)]
for k in range(1, N + 1):
p.append(p[-1] * mean / k)
return p
def tails(mean):
ph = pois(mean)
return [math.fsum(ph[k:]) for k in range(N + 1)]
def revenue(cap, m_h, m_l, y):
tail = tails(m_h)
emin = [math.fsum(tail[1:r + 1]) for r in range(cap + 1)]
b = cap - y
return math.fsum(p * (F_L * min(d, b) + F_H * emin[cap - min(d, b)])
for d, p in enumerate(pois(m_l)))
def littlewood(m_h, cap):
t = tails(m_h)
return max(y for y in range(cap + 1) if F_H * t[y] >= F_L)
pooled = littlewood(math.fsum(v[1] for v in TYPES.values()), 20)
rules = {"FCFS": {}, "pooled": {}, "by day type": {}}
for k, (cap, m_h, m_l) in TYPES.items():
rules["FCFS"][k] = 0
rules["pooled"][k] = round(pooled * cap / 20)
rules["by day type"][k] = littlewood(m_h, cap)
print("pooled Littlewood level for the month: %d of 20 days" % pooled)
print("rule protect we/wd weekend weekday month")
for name, y in rules.items():
v = {k: revenue(*TYPES[k], y[k]) for k in TYPES}
tot = math.fsum(v.values())
print("%-12s %4d / %-4d %9.1f %9.1f %9.1f"
% (name, y["weekend"], y["weekday"], v["weekend"],
v["weekday"], tot))Single source and citation
Fan, Y. (2026). Dynamic Revenue Management and Slot Packing for Space Rentals: Nested Protection Levels and the Elimination of Fragmented Idle Time (Version 1.0.0), Chapter 7: Classics of East and West: Season and Soil in the Qimin Yaoshu, and Ricardo's Differential Rent. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-282 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026282,
author = {Fan, Yafu},
title = {Dynamic Revenue Management and Slot Packing for Space Rentals: Nested Protection Levels and the Elimination of Fragmented Idle Time},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Cost of First Come, First Served: Littlewood's Two-Class Rule and the Full-Day Orders It Saves
- Chapter 2 · Nested Protection Levels: EMSR-a, EMSR-b and the Exact Optimum
- Chapter 3 · Bid Prices: How the Value of a Studio-Day Changes over the Booking Run
- Chapter 4 · Slot Packing: First-Fit Decreasing and Fragmented Idle Time
- Chapter 5 · Bookings at Fixed Times: Interval Partitioning and Weighted Interval Scheduling
- Chapter 6 · Price Ladders Posted in Full: Dynamic Pricing, a Promise Not to Cut, and Real Scarcity
- Chapter 8 · Closing the Loop: The Studio Price Table and a Pre-Registered Test