What does Launch Ad Pulses and Word of Mouth conclude, in numbers, about “Reasoning Back from the Last Day: Bellman's Induction, a Grid Check and a Hard Budget”?
Answer: Bellman's backward induction assumes no shape and, with intermediate amounts allowed, independently finds the same six-day pulse; the optimal value of 531904 and the path profit of 531909 differ only by interpolation error, and the conclusion is unchanged from a hundred and one grid points to two thousand and one, and from three levels to twenty-one. The decision table can also be read as a threshold rule that rises over time and copes with sales that depart from plan. Under a hard budget, enumerating every placement shows that the best is always a run at the cap from the first day. Everything so far rests on one key assumption: the effect of advertising is linear in spending. If the first thousand yuan work hardest and returns diminish after that, or if spending too little does nothing at all, is the optimal path still a clean cut? The next chapter answers.
Scope of the numbers: Chapter 8 gives the first-week pulse schedule, the switch-day judgement, the Launch Ad-Pulse Switch-Day Calculator and a pre-registered protocol (simulated power 0.840 with 20 units per arm). Marked boxes separate published evidence, runnable Python calculations (20 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: 531904, 531909
| DP value at x=0: 531904 | simulated path profit: 531909 |
| spend path days 0-9: 5000 5000 5000 5000 5000 5000 0 0 0 0 | |
| days at the cap: 6, days at a middle level: 0, total 30000 | |
| day | threshold x*_t (spend the cap while x is below it) |
| 0 | 0.108 |
| 2 | 0.118 |
| 4 | 0.127 |
| 6 | 0.137 |
| 8 | 0.148 |
| 10 | 0.160 |
| 20 | 0.228 |
| 40 | 0.408 |
Key formula
Show the full program
# Chapter 3. p31: Bellman's backward induction finds the same pulse.
# State x on a grid of 1001 points in [0, 1] with linear interpolation;
# control u in 11 levels from 0 to 5000 yuan per day, 500 apart; value
# W_t(x) = max_u [ V f(x, u) - u + W_{t+1}(x + f(x, u)) ], W_60 = 0.
# Nothing assumes bang-bang: the grid is free to choose middle levels.
# The policy is also read as a feedback rule: on day t spend while the
# reached share x is below a threshold x*_t. Parameters as in p12.
import math
M, MARGIN, P, Q, BETA, UMAX, T = 20000, 30.0, 0.001, 0.08, 4e-6, 5000.0, 60
V = MARGIN * M
N = 1000
LEVELS = [UMAX * k / 10 for k in range(11)]
def f(x, u):
return (P + BETA * u + Q * x) * (1 - x)
def interp(w, x):
if x >= 1.0:
return w[N]
i = int(x * N)
a = x * N - i
return w[i] * (1 - a) + w[i + 1] * a
w = [0.0] * (N + 1)
policy = [None] * T
for t in range(T - 1, -1, -1):
nw, pol = [0.0] * (N + 1), [0.0] * (N + 1)
for i in range(N + 1):
x = i / N
best, bu = None, 0.0
for u in LEVELS:
dx = f(x, u)
val = V * dx - u + interp(w, x + dx)
if best is None or val > best:
best, bu = val, u
nw[i], pol[i] = best, bu
w, policy[t] = nw, pol
x, us, cash = 0.0, [], []
for t in range(T):
u = policy[t][int(round(x * N))]
dx = f(x, u)
us.append(u)
cash.append(V * dx - u)
x += dx
print("DP value at x=0: %.0f simulated path profit: %.0f"
% (w[0], math.fsum(cash)))
print("spend path days 0-9: " + " ".join("%d" % u for u in us[:10]))
mid = [u for u in us if 0 < u < UMAX]
print("days at the cap: %d, days at a middle level: %d, total %.0f"
% (len([u for u in us if u == UMAX]), len(mid), math.fsum(us)))
print("day threshold x*_t (spend the cap while x is below it)")
for t in (0, 2, 4, 6, 8, 10, 20, 40):
xs = [i / N for i in range(N + 1) if policy[t][i] > 0]
print("%3d %s" % (t, "%.3f" % max(xs) if xs else "none"))Single source and citation
Fan, Y. (2026). Pontryagin's Maximum Principle at Product Launch: Optimal Ad-Pulse Burn Rates and the Hand-Over to Word of Mouth (Version 1.0.0), Chapter 3: Reasoning Back from the Last Day: Bellman's Induction, a Grid Check and a Hard Budget. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-241 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026241,
author = {Fan, Yafu},
title = {Pontryagin's Maximum Principle at Product Launch: Optimal Ad-Pulse Burn Rates and the Hand-Over to Word of Mouth},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Why Even Spending Loses: Equal Budgets on a Bass Curve
- Chapter 2 · Pricing Every Yuan: the Hamiltonian, the Co-State and the Switching Function
- Chapter 4 · The Response Curve Sets the Shape: a Concave Glide, S-Shaped Pulses and a Multiplicative Counterexample
- Chapter 5 · Word of Mouth Takes the Baton: Splitting Buyers by Source, the Sensitivity of the Switch Day and Robustness under Uncertainty
- Chapter 6 · Burn Rate and Real Capacity: Daily Caps, the Impulse Limit and Orders That Cannot Be Filled
- Chapter 7 · Classical Sources East and West: the Sunzi on Momentum and Bernoulli's Brachistochrone
- Chapter 8 · The Empirical Loop: Scheduling the First-Week Pulse, Judging the Switch Day and a Pre-Registered Test