Skip to content
FlowScript templates

Perishable food rescue network

Expose quality checks, short handling windows and alternative disposition paths. Typed FlowScript for supply chains. Keywords: supply chain, logistics, network, supplier.

Template previewFlowScript
SUPPLY CHAIN · TRACKED UNITS WITH QUALITY AND CUSTODY RECORDSIllustrative Perishable food rescue networkΣ link cost: CAD 12.00Max lead: 4 daysSUPPLIERWAREHOUSECUSTOMERCAD 1.20 · 1d · transferCAD 2.40 · 2d · transferCAD 0.80 · 1d · transferCAD 3.10 · 3d · transferCAD 1.70 · 2d · transferCAD 2.80 · 4d · transferRetail collectionExample site 11,200 u/periodTemperature checkExample site 2900 u/periodSorting hubExample site 31,500 u/periodCommunity kitchenExample site 4700 u/periodLocal distributionExample site 5600 u/periodComposting routeExample site 6500 u/period

What this template contains

Source
88 lines

Make it your own.

// Expose quality checks, short handling windows and alternative disposition paths.
// Synthetic worked example: all entities, schedules and measurements are illustrative.
// Every string below is EXAMPLE text from a fictional model: replace it.
// Replace assumptions and inputs before applying this model to actual work.

supply_chain network {
  title: "Illustrative Perishable food rescue network"
  product: "Tracked units with quality and custody records"
  currency: "CAD"
}

sc_node node_0 {
  name: "Retail collection"
  role: "supplier"
  location: "Example site 1"
  capacity: 1200
}

sc_node node_1 {
  name: "Temperature check"
  role: "supplier"
  location: "Example site 2"
  capacity: 900
}

sc_node node_2 {
  name: "Sorting hub"
  role: "warehouse"
  location: "Example site 3"
  capacity: 1500
}

sc_node node_3 {
  name: "Community kitchen"
  role: "warehouse"
  location: "Example site 4"
  capacity: 700
}

sc_node node_4 {
  name: "Local distribution"
  role: "customer"
  location: "Example site 5"
  capacity: 600
}

sc_node node_5 {
  name: "Composting route"
  role: "customer"
  location: "Example site 6"
  capacity: 500
}

sc_link link_0 {
  from: node_0
  to: node_1
  lead_time_days: 1
  cost_per_unit: 1.2
  mode: "transfer"
}

sc_link link_1 {
  from: node_1
  to: node_2
  lead_time_days: 2
  cost_per_unit: 2.4
  mode: "transfer"
}

sc_link link_2 {
  from: node_2
  to: node_3
  lead_time_days: 1
  cost_per_unit: 0.8
  mode: "transfer"
}

sc_link link_3 {
  from: node_2
  to: node_4
  lead_time_days: 3
  cost_per_unit: 3.1
  mode: "transfer"
}

sc_link link_4 {
  from: node_1
  to: node_5
  lead_time_days: 2
  cost_per_unit: 1.7
  mode: "transfer"
}

sc_link link_5 {
  from: node_2
  to: node_5
  lead_time_days: 4
  cost_per_unit: 2.8
  mode: "transfer"
}

view network_map: supply_map