Skip to content

Allocating scarce lots so the shared charges add up

Where an allocation goes wrong

Shared inbound charges and a scarce lot can be allocated in a way that does not add up to the cent, or that fills fewer orders than the stock allows.

Min-cost max-flow

CM-001 fills as many fictional orders as it can, then picks the cheapest of those fills by a documented rank cost. Shared charges are split so the cents still add up, and a certificate comes with the fill. A greedy fill can look the same and still be wrong.

Next: auditable ties

Tie-break keys written into the export, and a duplicate-key check when the input is parsed.

Related