What does Five-Adversary Business Wargaming conclude, in numbers, about “The Axiom Table and the Round-Based Engine: Nineteen Conclusions, Zero-Intelligence Agents and a Sandbox That Can Go Bankrupt”?
Answer: Chapter 1 builds the axiom table and the engine and reproduces zero-intelligence traders: a single budget rule lifts efficiency from 0.8929 to 0.9730.
Scope of the numbers: Marked boxes separate evidence, runnable Python calculations (22 programs), classical sources and 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: 0.8929, 0.9730
| maximum surplus 560.0 points, 7 efficient trades | |||
| ZI-C (budget rule) | efficiency 0.9730 | trades 8.17 | sessions<0 0 |
| ZI-U (no rule) | efficiency 0.8929 | trades 10.00 | sessions<0 0 |
Show the full program
# Chapter 1. p12: zero-intelligence traders in a double auction
# After Gode and Sunder (1993): traders bid at random. ZI-C may not
# buy above value or sell below cost; ZI-U has no budget constraint.
# Values and costs are illustrative (in points). Efficiency = realised
# surplus / maximum surplus, averaged over seeded sessions.
import math
import random
VALUES = [200, 190, 180, 170, 160, 150, 140, 130, 120, 110]
COSTS = [60, 70, 80, 90, 100, 110, 120, 130, 140, 150]
TOP = 220
def max_surplus():
s = []
for v, c in zip(sorted(VALUES, reverse=True), sorted(COSTS)):
if v > c:
s.append(v - c)
return math.fsum(s)
def session(rng, constrained, steps=600):
buyers = list(range(len(VALUES)))
sellers = list(range(len(COSTS)))
bid, ask = None, None # (price, trader)
gains = []
for _ in range(steps):
if not buyers or not sellers:
break
if rng.random() < 0.5:
b = rng.choice(buyers)
hi = VALUES[b] if constrained else TOP
p = rng.uniform(1, hi)
if ask is not None and p >= ask[0]:
s = ask[1]
gains.append(VALUES[b] - COSTS[s])
buyers.remove(b)
sellers.remove(s)
bid, ask = None, None
elif bid is None or p > bid[0]:
bid = (p, b)
else:
s = rng.choice(sellers)
lo = COSTS[s] if constrained else 1
p = rng.uniform(lo, TOP)
if bid is not None and p <= bid[0]:
b = bid[1]
gains.append(VALUES[b] - COSTS[s])
buyers.remove(b)
sellers.remove(s)
bid, ask = None, None
elif ask is None or p < ask[0]:
ask = (p, s)
return math.fsum(gains), len(gains)
rng = random.Random(40612)
best = max_surplus()
print("maximum surplus {:.1f} points, {} efficient trades".format(
best, len([1 for v, c in zip(sorted(VALUES, reverse=True),
sorted(COSTS)) if v > c])))
for label, flag in (("ZI-C (budget rule)", True),
("ZI-U (no rule)", False)):
eff, trades, neg = [], [], 0
for _ in range(400):
g, n = session(rng, flag)
eff.append(g / best)
trades.append(n)
if g < 0:
neg += 1
print("{:<20} efficiency {:.4f} trades {:.2f} sessions<0 {}".format(
label, math.fsum(eff) / len(eff),
math.fsum(trades) / len(trades), neg))Single source and citation
Fan, Y. (2026). Axiom-Driven Business Wargaming, Multi-Agent Adversarial Stress-Testing and Pre-Launch Zero-Tuition Sandboxes (Version 1.0.0), Chapter 1: The Axiom Table and the Round-Based Engine: Nineteen Conclusions, Zero-Intelligence Agents and a Sandbox That Can Go Bankrupt. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-406 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026406,
author = {Fan, Yafu},
title = {Axiom-Driven Business Wargaming, Multi-Agent Adversarial Stress-Testing and Pre-Launch Zero-Tuition Sandboxes},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 2 · The Price-Sensitive Buyer: Reference Points, Loss Aversion and the Hangover after a Promotion
- Chapter 3 · The Arbitrage Speculator: a Red Team That Reads Only Our Own Rule Book, a Breach List and the Order of Repairs
- Chapter 4 · The Imitating Competitor and the Compliance Auditor: Capacity Commitment, Entry Delay and Random Checks against a Clause List
- Chapter 5 · The Liquidity Shock: Gambler's Ruin, Refund Runs and Frozen Channels
- Chapter 6 · The Joint Attack, Coverage and Global Sensitivity: Rewriting "Exhaustive" as Three Numbers That Can Be Checked
- Chapter 7 · Eastern and Western Classics: the Temple Calculation of the Sunzi and Clausewitz's Friction
- Chapter 8 · Field Tools and Checker Specifications: the Sandbox Planning Ledger, Backfill Calibration and a Pre-Registered Test