Skip to content
FlowScript templates

Supply — Cold Chain Despatch

A cold-chain despatch cascade, from pallets released at the plant to pallets signed for at the hospital dock. Typed FlowScript for supply chains. Keywords: supply chain, logistics, network, supplier.

Template previewFlowScript
SUPPLY CHAIN · VACCINE, 2 TO 8 C, 480 DOSES PER PALLETVaccine cold chain — week 34 despatchΣ link cost: EUR 23.50Max lead: 4 daysFACTORYWAREHOUSECUSTOMEREUR 3.20 · 1d · truckEUR 5.40 · 2d · truckEUR 9.10 · 4d · truckEUR 2.75 · 1d · truckEUR 3.05 · 1d · truckFill-finish plantLeiden, NL2,600 u/periodCentral cold storeRotterdam, NL4,200 u/periodRegional hub — CologneCologne, DE1,800 u/periodRegional hub — ValenciaValencia, ES1,400 u/periodHospital pharmaciesDE, ES, FR

Make it your own.

// A cold-chain despatch cascade, from pallets released at the plant to
// pallets signed for at the hospital dock. Every handover subtracts its
// own losses and the compiler checks the subtraction, so changing one
// exclusion count names the stage that stops balancing.

supply_chain cold_chain {
  title: "Vaccine cold chain — week 34 despatch"
  product: "Vaccine, 2 to 8 C, 480 doses per pallet"
  currency: "EUR"
}

sc_node plant {
  name: "Fill-finish plant"
  role: "factory"
  location: "Leiden, NL"
  capacity: 2600
}

sc_node cold_store {
  name: "Central cold store"
  role: "warehouse"
  location: "Rotterdam, NL"
  capacity: 4200
}

sc_node hub_de {
  name: "Regional hub — Cologne"
  role: "warehouse"
  location: "Cologne, DE"
  capacity: 1800
}

sc_node hub_es {
  name: "Regional hub — Valencia"
  role: "warehouse"
  location: "Valencia, ES"
  capacity: 1400
}

sc_node pharmacies {
  name: "Hospital pharmacies"
  role: "customer"
  location: "DE, ES, FR"
}

sc_link plant_store {
  from: plant
  to: cold_store
  lead_time_days: 1
  cost_per_unit: 3.20
  mode: "truck"
}

sc_link store_de {
  from: cold_store
  to: hub_de
  lead_time_days: 2
  cost_per_unit: 5.40
  mode: "truck"
}

sc_link store_es {
  from: cold_store
  to: hub_es
  lead_time_days: 4
  cost_per_unit: 9.10
  mode: "truck"
}

sc_link de_last_mile {
  from: hub_de
  to: pharmacies
  lead_time_days: 1
  cost_per_unit: 2.75
  mode: "truck"
}

sc_link es_last_mile {
  from: hub_es
  to: pharmacies
  lead_time_days: 1
  cost_per_unit: 3.05
  mode: "truck"
}

// ── The despatch cascade: 2400 released, 2159 accepted, and every
//    one of the 241 pallets in between accounted for by name.
cohort released {
  n: 2400 source "WMS release report, week 34"
}

cohort picked {
  n: 2288
  from: released
  excluded: {
    stock_out: 84
    quality_hold: 28
  }
}

cohort loaded {
  n: 2231
  from: picked
  excluded: {
    failed_precool: 39
    pallet_damaged: 18
  }
}

cohort delivered {
  n: 2186
  from: loaded
  excluded: {
    temperature_excursion: 31
    in_transit_damage: 14
  }
}

cohort accepted {
  n: 2159
  from: delivered
  excluded: {
    rejected_at_dock: 19
    outside_delivery_window: 8
  }
}

view chain: supply_map
view despatch: consort(released)