← Back to the lab

Simulation

Medicine supply digital twin (10/14): framework contracts, penalties and termination

A framework contract sets how much can be ordered and what happens if the supplier doesn't deliver. The daily penalty on what's undelivered, the guarantee cap and the count of how many days late remain before termination.

By ·

The purchase in the previous post ended in awards. Each one becomes a framework contract: it doesn’t set an exact quantity but a range, because nobody knows to the day how much will be used in the year. During its term, the warehouse places supply orders and the supplier delivers.

The twin keeps each contract’s file: orders, dock deliveries, rejections, penalties and, if it comes to that, termination. The figures in this post are modelling assumptions, not those of any particular contract; each tender sets its own.

The floor and the ceiling

The contract sets a maximum amount MM and a minimum, which in the model is 40 % of the maximum:

0.40 M  ≤  what is ordered in the year  ≤  M0.40\,M \;\le\; \text{what is ordered in the year} \;\le\; M

The floor protects the supplier: if it geared up to manufacture, it’s guaranteed to sell at least that much. The ceiling protects the budget. Between the two, the buyer adjusts to real demand.

The supplier posts a performance guarantee of 10 % of the maximum. That guarantee is also the cap on penalties.

The penalty only charges what’s missing

A supply order has several lines, one per item, each with its deadline. If a line is late, the penalty runs per calendar day and only on what hasn’t been delivered:

penaltyj=r∑t > tjdeadlineuj(t) Vj\text{penalty}_j = r \sum_{t\,>\,t_j^{\text{deadline}}} u_j(t)\,V_j

If the supplier delivers half on time and the other half late, it only pays a penalty on the late half and for the days it took. The penalties of every line in the contract add up into a single pot.

The day the cap is reached

If an order of value VV has a share uu undelivered that isn’t resolved, the pot grows in a straight line, r u Vr\,u\,V per day, until it hits the guarantee. The days remaining are

dcap=Gr u V=0.10 Mr u Vd_{\text{cap}} = \frac{G}{r\,u\,V} = \frac{0.10\,M}{r\,u\,V}

Move the size of the contract and the order: a large contract with a small order almost never reaches the cap, because the guarantee is large compared with what’s at stake. An order that’s a big part of the contract gets there fast.

The CEDIS in 3D: turn on the Contracts layer (“Contratos”) to see supplier trucks and the contracts yard. (Interface in Spanish.) · Open full screen · Open contract management

What happens after the cap

When the cap is reached, or on clear non-performance, termination begins: notice to the supplier, a deadline to respond and a decision, all in working days. Meanwhile, the item still isn’t arriving. In the twin, each contract has a runner-up, the bidder that came after the winner, with a price 3 to 7.5 % higher. If the contract is terminated, the balance goes to them.

That’s why the two numbers that matter most aren’t the penalty or the cap, but:

  • how many days pass from the start of the delay until the runner-up delivers, and
  • how much more the runner-up costs on the outstanding balance.

The twin cross-checks the contract file against the warehouse inventory: an order the inventory records as “late” shows up here as a supplier delay or a dock rejection, with its penalty; a “partial” order is a truncated delivery. That way the contract’s story and the shelf’s match day by day.

What comes next

What enters the warehouse is recorded in the system. But the system and the shelf drift apart through small errors nobody sees. The next post is about physical inventory: how often to count and why the second count must be blind.