Skip to tool

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

Math
Sinkhorn planFlow SVGCost heatmapTransport CSVCost CSVJSON receipt

Loading Optimal Transport Flow Map Lab...

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.

Read the editor guide for optimal transport maps