What does Cross-Border Dual Sourcing and Disruption Options conclude, in numbers, about “The Full Annual Ledger of the Lowest Price: One Far Source, One Near Source, or Two”?
Answer: The quotation sheet records only landed price; the ledger has seven lines. Under this chapter's illustrative parameters, the landed-price advantage of a single far source is eaten away line by line by stock in transit, safety stock, the outage buffer and outage losses. The dual split costs 1560877 a year, 8323 less than the best single far-source plan, and the single near source is dearest; a naive ledger that counts only landed price and a demand-only safety stock reaches the opposite conclusion. The parameter map shows that the size of the effect is set by outage length and the near premium: with short outages the single far source is the lowest-cost option, and once outages average 40 days or more the dual split begins to win. With the number of days lost each year held fixed, the rarer and longer the outages, the more they should be met by a second source rather than by stock. Lead-time variance is a second-order term in cost and a first-order term in service.
Scope of the numbers: Its prices, lead times, outage frequencies, margins and capacities are illustrative; all calculations are generated by its programs; the book is not individual legal, tax or financial advice. 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: 1560877, 8323
| per year | far passive | far buffer | near only | dual a=0.55 |
| purchase | 1460000 | 1460000 | 1576800 | 1515440 |
| orders | 7821 | 7821 | 10429 | 18250 |
| cycle | 7000 | 7000 | 3780 | 5551 |
| transit | 16000 | 16000 | 2160 | 9772 |
| safety | 24702 | 35019 | 4093 | 9703 |
| recurrent | 3360 | 3360 | 483 | 1146 |
| outage | 51770 | 40000 | 0 | 1016 |
| TOTAL | 1570653 | 1569200 | 1597745 | 1560877 |
| stock | 988.1 | 1400.7 | 151.6 | 359.4 |
| naive far-only estimate (no sd_L, no outages): 1494448 | ||||
| dual saving against best far-only plan: 8323 per year | ||||
| saving the naive sheet shows for far-only: 66430 per year |
Show the full program
# Chapter 2. p21: annual total cost, cheapest single source against dual.
# Model (per year, illustrative): purchase, fixed cost per order, cycle
# stock, in-transit capital, safety stock at the cost-optimal service
# level (lost-sales critical ratio), recurrent shortage via the normal
# loss function, and far-source outages (Poisson rate lam per year,
# exponential length mean tau days) met by an optimal buffer. The dual
# policy is tailored base-surge: the far source ships a constant share
# alpha; the near source tops up and, during outages, can raise its
# volume by the factor (1 + flex) up to cap. Dual safety stock covers
# near-loop demand noise plus far delays capped at the near protection
# interval. All parameters illustrative.
import math
from statistics import NormalDist
N01 = NormalDist()
YEAR = 365.0
# 基准参数(示意):日需求均值与标准差、年持有率、在途资金率、缺一件毛利;
# 远源到岸价、交期均值与标准差、补货周期、每票固定费;近源同;
# 远源断供年发生率与平均天数、近源产能上限与量弹性
BASE = dict(d=40.0, sd=12.0, h=0.25, i=0.10, p=120.0,
cF=100.0, LF=40.0, sLF=10.0, TF=14.0, KF=300.0,
cN=108.0, LN=5.0, sLN=1.0, TN=7.0, KN=200.0,
lam=0.5, tau=40.0, cap=60.0, flex=1.0)
def loss(z):
return N01.pdf(z) - z * (1.0 - N01.cdf(z))
def capped_m2(s_l, cap, n=400):
# E[min(delta+, cap)^2], delta ~ N(0, s_l)
if s_l <= 0.0:
return 0.0
hs = cap / n
w = [1.0 if k in (0, n) else (4.0 if k % 2 else 2.0)
for k in range(n + 1)]
f = [(k * hs) ** 2 * N01.pdf(k * hs / s_l) / s_l for k in range(n + 1)]
body = math.fsum(a * b for a, b in zip(w, f)) * hs / 3.0
return body + cap ** 2 * (1.0 - N01.cdf(cap / s_l))
def buffer(q, sp, c, t):
z = max(0.0, N01.inv_cdf(q["p"] / (q["p"] + q["h"] * c * t / YEAR)))
return z * sp, q["h"] * c * z * sp, YEAR / t * sp * loss(z) * q["p"]
def outage(q, u, ss, mitigate=True):
# 断供期缺口速率 u;缓冲 b 按 h*c = lam*p*exp(-(ss+b)/(u*tau)) 取最优
ut = u * q["tau"]
if ut <= 0.0 or q["lam"] <= 0.0:
return 0.0, 0.0
b = 0.0
if mitigate and q["lam"] * q["p"] > q["h"] * q["cF"]:
b = max(0.0, ut * math.log(q["lam"] * q["p"]
/ (q["h"] * q["cF"])) - ss)
return b, q["lam"] * q["p"] * ut * math.exp(-(ss + b) / ut)
def far_only(q, mitigate=True):
sp = math.sqrt((q["LF"] + q["TF"]) * q["sd"] ** 2
+ (q["d"] * q["sLF"]) ** 2)
ss, c_ss, c_rec = buffer(q, sp, q["cF"], q["TF"])
b, c_out = outage(q, q["d"], ss, mitigate)
return {"purchase": q["d"] * YEAR * q["cF"],
"orders": YEAR / q["TF"] * q["KF"],
"cycle": q["h"] * q["cF"] * q["d"] * q["TF"] / 2.0,
"transit": q["i"] * q["cF"] * q["d"] * q["LF"],
"safety": c_ss + q["h"] * q["cF"] * b, "recurrent": c_rec,
"outage": c_out, "stock": ss + b}
def dual(q, a):
pn = q["LN"] + q["TN"]
sp = math.sqrt(pn * q["sd"] ** 2 + (q["d"] * q["sLN"]) ** 2
+ (a * q["d"]) ** 2 * capped_m2(q["sLF"], pn))
ss, c_ss, c_rec = buffer(q, sp, q["cN"], q["TN"])
base_n = (1.0 - a) * q["d"]
# 近源断供期可供量:基量乘 (1 + 弹性),且不超过产能上限与日需求
up = min(q["cap"], base_n * (1.0 + q["flex"]), q["d"])
b, c_out = outage(q, q["d"] - up, ss)
days = q["lam"] * q["tau"]
return {"purchase": q["d"] * YEAR * (a * q["cF"] + (1 - a) * q["cN"])
+ days * (up - base_n) * (q["cN"] - q["cF"]),
"orders": (YEAR / q["TF"] * q["KF"] if a > 0 else 0.0)
+ YEAR / q["TN"] * q["KN"],
"cycle": q["h"] * q["d"] / 2.0
* (a * q["cF"] * q["TF"] + (1 - a) * q["cN"] * q["TN"]),
"transit": q["i"] * q["d"]
* (a * q["cF"] * q["LF"] + (1 - a) * q["cN"] * q["LN"]),
"safety": c_ss + q["h"] * q["cF"] * b, "recurrent": c_rec,
"outage": c_out, "stock": ss + b}
def total(r):
return math.fsum(v for k, v in sorted(r.items()) if k != "stock")
def best_dual(q, step=0.05):
grid = [k * step for k in range(int(round(1 / step)) + 1)]
return min((total(dual(q, a)), a) for a in grid)
def best_far(q):
return min(total(far_only(q, False)), total(far_only(q, True)))
# ---- end of shared model ----
q = dict(BASE)
cost_d, a_star = best_dual(q)
cases = [("far passive", far_only(q, False)),
("far buffer", far_only(q, True)),
("near only", dual(q, 0.0)),
("dual a=%.2f" % a_star, dual(q, a_star))]
keys = ["purchase", "orders", "cycle", "transit", "safety",
"recurrent", "outage"]
print("%-10s" % "per year" + "".join("%14s" % n for n, _ in cases))
for k in keys:
print("%-10s" % k + "".join("%14.0f" % r[k] for _, r in cases))
print("%-10s" % "TOTAL" + "".join("%14.0f" % total(r) for _, r in cases))
print("%-10s" % "stock" + "".join("%14.1f" % r["stock"] for _, r in cases))
z95 = N01.inv_cdf(0.95)
naive = math.fsum([q["d"] * YEAR * q["cF"], YEAR / q["TF"] * q["KF"],
q["h"] * q["cF"] * q["d"] * q["TF"] / 2.0,
q["i"] * q["cF"] * q["d"] * q["LF"],
q["h"] * q["cF"] * z95 * q["sd"]
* math.sqrt(q["LF"] + q["TF"])])
print("naive far-only estimate (no sd_L, no outages): %.0f" % naive)
print("dual saving against best far-only plan: %.0f per year"
% (best_far(q) - cost_d))
print("saving the naive sheet shows for far-only: %.0f per year"
% (cost_d - naive))Single source and citation
Fan, Y. (2026). Dual-Source Redundancy and Supply-Disruption Real Options in Cross-Border Chains: Optimal Safety Stock and Source Splits under Shipping Delays and Customs Variability (Version 1.0.0), Chapter 2: The Full Annual Ledger of the Lowest Price: One Far Source, One Near Source, or Two. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-291 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026291,
author = {Fan, Yafu},
title = {Dual-Source Redundancy and Supply-Disruption Real Options in Cross-Border Chains: Optimal Safety Stock and Source Splits under Shipping Delays and Customs Variability},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Lead-Time Variance: the Term Deleted from the Safety-Stock Formula
- Chapter 3 · The Split: the Ceiling on the Far Share Is Set by Near-Source Flexibility
- Chapter 4 · The Two-Source Newsvendor: the Critical Fractile of a One-Order Season and the Value of Reacting
- Chapter 5 · Supply-Disruption Real Options: Reserved Capacity, Exchange-Rate Switching and Keeping a Supplier Warm
- Chapter 6 · Clearance Variability and Robustness: Two-Peaked Lead Times, a Handful of Shipments, and a Common Failure Point
- Chapter 7 · The Classics Examined: "Feeding on the Enemy" and Harris's Square Root
- Chapter 8 · Closing the Loop: the Dual-Source Split Sheet, the Small Tool and a Pre-Registered Test