← Back to the lab

Simulation

Medicine supply digital twin (9/14): buying with a price window and several sources

A bid can lose for being too expensive and also for being too cheap. How valid bids are decided, why it pays to split an item between several suppliers and what that insurance costs, with the expected-shortfall calculation.

By ·

Everything the warehouse moves was bought beforehand, often a year in advance. In the twin’s fictional system, buying each item works like a tender: demand is published, manufacturers submit bids, they’re checked against technical requirements and the award goes by price.

The twin simulates that procedure item by item. Today I focus on two rules with interesting math: the price window and multiple sourcing.

The price window

Before receiving bids, a market survey sets a reference price: the average of the prices found. A window is built around it. In the model:

0.60 pref  ≤  p  ≤  1.10 pref0.60\,p_{\text{ref}} \;\le\; p \;\le\; 1.10\,p_{\text{ref}}
  • Above 110 % of the reference price, the bid is not acceptable: you’d overpay.
  • Below 60 %, it’s not reasonable: a price that low raises doubts the supplier can deliver. It may be a costing error, a strategy to win and then not deliver, or a product that doesn’t meet requirements.

The second rule is surprising at first sight, but it makes sense: a bid that can’t be fulfilled is more expensive than an expensive one, because it ends in a shortage and an emergency purchase.

Multiple sourcing

If an item is awarded to a single supplier and that supplier fails, the whole item goes unfilled. The alternative is to split it among several. In the model:

  1. Valid bids are sorted from lowest to highest price.
  2. Those within 10 % of the lowest get in, up to 4 sources.
  3. The item is split with fixed shares depending on how many got in:
SourcesSplit
1100 %
260 / 40
350 / 30 / 20
440 / 25 / 20 / 15

The cheapest supplier always gets the largest share.

What that insurance buys

Suppose each supplier independently fails with probability pp. With a single source, the probability of losing the item is pp. With kk sources, the probability that all fail is

P(all fail)=pkP(\text{all fail}) = p^k

But that’s not all: when one fails its share is lost, and the others can cover a bit more than theirs. If each supplier that delivers can supply up to 50 % more than its share, the expected shortfall is computed by going through the 2k2^k possible cases:

E[shortfall]=∑F⊆{1..k}p∣F∣(1−p)k−∣F∣  max⁡ ⁣(0,  ∑i∈Fwi−0.5 ⁣∑i∉Fwi)\mathbb{E}[\text{shortfall}] = \sum_{F \subseteq \{1..k\}} p^{|F|}(1-p)^{k-|F|}\;\max\!\Big(0,\; \sum_{i \in F} w_i - 0.5\!\sum_{i \notin F} w_i\Big)

where FF is the set of suppliers that fail and wiw_i each one’s share.

Try lowering the maximum sources to 1 and raising the failure probability: with one supplier, the expected shortfall is exactly pp. Ask for other bids: sometimes nobody falls inside the window and the item gets no award, which in the twin forces a second round and, if that fails too, an emergency purchase that’s more expensive and incomplete.

Consolidated procurement in 3D: from plan to contract, with bids, the price window and the split among suppliers. (Interface in Spanish.) · Open full screen

What the twin adds

The aid simplifies. In the twin, each item has its own simulated market: how many manufacturers can make it, whether it’s patented (one maker, direct award), how long it takes to manufacture and how likely a bid is to fail technical review over a paperwork error. It also simulates rounds of follow-up discount bids, where suppliers can lower their price after seeing the others’. With that, whole procurement calendars can be compared: a tender called on time leaves room for a second round; a late one doesn’t.

What comes next

The award ends in a contract. In the next post, framework contracts: the minimum and maximum that can be ordered, the penalties for late delivery and the day penalties reach the guarantee and the contract is terminated.