Loading Optimal Transport Flow Map Lab...
OPTIMAL TRANSPORT + FLOW VISUALIZATION
Optimal Transport Flow Map Lab
Build Sinkhorn optimal-transport flow maps with balanced source and target mass, route ribbons, cost heatmap, transport CSV, cost CSV, Markdown notes and JSON receipt.
Reviewed 2026-06-28
MathSinkhorn planFlow SVGCost heatmapTransport CSVCost CSVJSON receipt
FORMULA CONTRACT
Allocation visuals need both cost and mass-balance proof.
The lab uses K_ij = exp(-c_ij / epsilon) and iteratively scales P = diag(u) K diag(v) to match source and target marginals. It reports transport cost, active routes, entropy and marginal residuals so the flow map can be checked.