Learning prototype · synthetic data · independent 2026 rebuild of SRH Hamburg coursework (May–Jun 2024) · built with Lovable and AI assistance

Interactive supply-chain planning studio

Pharma Distribution Planning

Poland regional distribution network · interactive rebuild of an SRH Hamburg university project (May–Jun 2024)

Excel-style distribution plan for a pharmaceutical network in Poland: city-level demand, regional warehouses, delivery routes, transport lead times, operating costs and safety stock.

30-second overview

Full context further down the page
Planning question
How can a regional distributor assign market demand to warehouses while balancing distance, cost, lead time and safety stock?
Skills demonstrated
  • Spreadsheet-style modelling with explicit assumptions
  • Supply-chain network reasoning: zoning, safety stock, routes, fleet cost
  • Scenario analysis with linked presets and a scorecard
Try it in a minute
Save the current settings as Scenario A, apply a preset, save Scenario B and compare them side by side. Every table can be downloaded as CSV.
Method
Centre-of-gravity siting, textbook safety stock, straight-line route sequences and a monthly fleet-cost model, all shown in Formulas and limitations.

Jump into the studio:

Illustrative animation

The synthetic model in motion

Illustrative animation of the four synthetic delivery routesA pulse loops along each region's current stop sequence on the schematic outline. Drawn from the synthetic studio routes; not a real-time feed.
Each pulse follows a region's current stop sequence: 4 synthetic routes, 16 stops, 2,406 straight-line km per run. Edit a route in the studio and the paths redraw.Illustrative only, not a live feed.

Planning studio

Seven linked modules share one synthetic model. Change demand, a route or a cost assumption in any module and the others, and the scorecard below, update with it.

Scenario presets

Active: Baseline. Four regional warehouses, 95% service level, 20 route runs a month.

Presets set assumptions only. Your demand edits, routes and warehouse choices are kept.

Compare two scenarios

Save the current settings as A, change something, then save B.

Synthetic demand
236,000
units/yr
Warehouses
4
regional
Safety stock
1,027
units at 95.0%
Route distance
2,406
km per run
Monthly fleet cost
29,508
c.u.

Swipe the module bar sideways for all seven modules.

Network & zoning

Sixteen markets are split into four planning regions. Each region's warehouse site sits at its demand-weighted centre of gravity, a simple location heuristic.

Try this: Raise one market's demand and watch its region's warehouse site move towards it, then switch to a single central warehouse.

Schematic map of synthetic regions, markets and warehouse sitesSchematic, not to scale; synthetic positions. Warehouse N at schematic x 356, y 129. Warehouse W at schematic x 135, y 292. Warehouse E at schematic x 564, y 310. Warehouse S at schematic x 364, y 534
Schematic outline and invented market positions, not to scale. Lines are straight-line estimates, not road routes.North regionWest regionEast regionSouth regionWarehouse site (letter = region)Circle size = synthetic demand

Network set-up

Warehouse structure
Centre-of-gravity weighting

Each region is served by its own warehouse at that region's centre of gravity.

Centre of gravity

x* = Σ(w × x) ÷ Σw
y* = Σ(w × y) ÷ Σw
w  = synthetic annual demand

Coordinates are schematic km on an invented layout. The point minimises weighted squared straight-line distance; it ignores roads, land, costs and capacity.

  • North region

    Demand
    53,500 u/yr
    Centre (x, y)
    356, 129
    Served from
    Warehouse N
    Avg distance
    81 km
  • West region

    Demand
    57,500 u/yr
    Centre (x, y)
    135, 292
    Served from
    Warehouse W
    Avg distance
    80 km
  • East region

    Demand
    55,000 u/yr
    Centre (x, y)
    564, 310
    Served from
    Warehouse E
    Avg distance
    74 km
  • South region

    Demand
    70,000 u/yr
    Centre (x, y)
    364, 534
    Served from
    Warehouse S
    Avg distance
    93 km

Warehouse assignments

Markets served by each warehouse site and the load on it
WarehouseMarkets servedAnnual load (units)Share of demandAvg distance (km)
Warehouse NN1, N2, N3, N453,50022.7%81
Warehouse WW1, W2, W3, W457,50024.4%80
Warehouse EE1, E2, E3, E455,00023.3%74
Warehouse SS1, S2, S3, S470,00029.7%93

Distances are demand-weighted straight-line estimates. The download lists every market with its assigned warehouse.

Annual demand by market

Units per year. Edits feed every other module.

North region
West region
East region
South region

Coursework themes and this rebuild

The fictional scenario

Kestrel Regional Distribution is an invented company. It serves sixteen markets, labelled by region code, across four planning regions on a schematic outline of Poland.

Planning question

How can a regional distributor assign market demand to regional warehouses while balancing delivery distance, operating cost, lead time and safety stock?

Course framework and where it appears here

Themes from the course project framework, and where each one appears in this prototype.

Course framework themes mapped to modules in this prototype
Course framework themeIn this independent prototypeModule
Company and strategy contextA fictional distributor and a summarised project question.Context and method
Zoning conceptFour synthetic planning regions on a schematic map.
Regional warehouse definitionDemand-weighted centre-of-gravity sites, or one central site.
Inventory planningTextbook safety stock and reorder point per region.
Distribution planningEditable stop sequences with straight-line legs and elapsed time, plus a linked fleet-cost module.
Warehousing and packagingQualitative process options and trade-offs.
IT and ordering systemsA conceptual order-to-dispatch mock-up.
KPIsA live scorecard of synthetic quantities and scenario comparison.
Summary and literatureFormulas, assumptions and limitations; no literature is reproduced.Context and method

Project workbook themes

  • Demand and inventory schedules for four regions
  • Delivery sequences with lead-time calculations
  • Fleet operating-cost categories
  • Safety-stock calculations

This 2026 rebuild

  • Simplified, interactive learning prototype
  • Textbook heuristics chosen for this rebuild
  • Invented markets, values, rates and routes
  • Scenario comparison and CSV export

Formulas and limitations

Every number in the studio comes from the formulas below, run in your browser on synthetic inputs. They are textbook models chosen for this rebuild.

1. Network & zoning

Four zones are formed by two diagonals across the schematic outline. Each market belongs to one zone.

centre x* = Σ(w × x) ÷ Σw,  y* = Σ(w × y) ÷ Σw
w = annual demand  (or 1 with equal weights)
distance = √((x₁ − x₂)² + (y₁ − y₂)²)

Consolidated mode places one site at the centre of gravity of all markets.

2. Inventory

d   = annual demand ÷ working days (250)
σd  = d × CV
SS  = z × √(L × σd² + d² × σL²)
ROP = d × L + SS
pooled σd = √(Σ regional σd²)

z comes from the inverse standard normal of the service level (currently z = 1.6449 at 95.0%).

3. Distribution

route  = site → stop 1 → … → stop n → site
leg km = straight-line distance
drive  = km ÷ speed × 60 min
elapsed on arrival = Σ drive + service time at earlier stops

The nearest-neighbour button always visits the closest unvisited stop next; it is a construction heuristic, not an optimal route.

4. Fleet cost

monthly km  = Σ route km × runs per month
fuel        = monthly km × L/100 km ÷ 100 × price
maintenance = monthly km × rate;  tyres = monthly km × rate
lease, insurance = vehicles × monthly rate
inspection  = vehicles × annual rate ÷ 12

All rates are invented, in illustrative currency units (c.u.).

5. KPI & scenarios

The scorecard sums or averages values from modules 1 to 4. Presets replace the assumptions only (service level, network structure, run frequency, fuel price); demand, routes and warehouse choices stay as you set them.

avg delivery time = Σ(demand × arrival minutes) ÷ Σ demand
difference        = Scenario B − Scenario A  (and % of A)
site load share   = site annual demand ÷ total demand

Scenario A and B are full saved copies of the studio. The key takeaway names the site with the largest load and the fleet cost line with the largest share.

6. Warehouse and order flow

Both are qualitative. Warehouse options describe general textbook trade-offs. The order flow is a conceptual mock-up that reads values from the other modules; it calls no system and stores nothing.

Stated assumptions

  • Coordinates are schematic km on an invented layout; distances are straight-line estimates.
  • One service level, CV, lead time and lead-time variability apply to every region.
  • Regional demand is independent when pooled; warehouses have unlimited capacity.
  • Each route uses one dedicated vehicle and runs the same number of times a month.
  • Average speed and service time are flat; there are no time windows, breaks or traffic.
  • Driver wages, tolls, depreciation and overheads are not included in fleet cost.

Limitations

  • All markets, demand, positions, costs, lead times and parameters are synthetic. Coursework themes are summarised at topic level only; no workbook, value, route sequence, formula, place name or result is reproduced.
  • Geography is schematic. Distances are straight-line estimates, not road distances; elapsed times are illustrations, not travel-time estimates.
  • Centre of gravity and nearest-neighbour ordering are educational heuristics. Nothing here is a facility-location or vehicle-routing optimiser.
  • Fleet cost is a simplified monthly proxy with invented rates. It does not recreate the original route plans, cost calculation or any real fleet budget.
  • Warehouse and order-flow modules are qualitative and conceptual. They make no claim about any real facility design, WMS, ERP or deployed workflow.
  • This is a learning prototype, not a recommendation, a deployed tool or a representation of any real company. It shows no business impact and is not professional planning experience.
  • The original brief, final presentation, formal title, company and conclusions of the coursework were not located, so none of them is claimed here.