Skip to content

About

Factory to DC to customer network flow with demand and capacity scenarios. Synthetic data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Distribution network optimisation: data model summary (synthetic exercise)

Minimise the cost of shipping from factories through distribution centres to customers. A fictional company: 2 factories, 4 DCs, 10 customers.

Status

  • Runs end to end; writes scenario_summary.csv and asserts flow balance.
  • Transport cost only. Not included: inventory days, fixed storage, forced shares.

1. Problem and process

Compare a baseline against +20% demand, and +20% demand with larger DCs.

2. Data flow

flowchart LR
    F[Factories] --> D[Distribution centres] --> C[Customers]
    S[Scenario list] --> R[Runner] --> O[scenario_summary.csv]
Loading

3. Model

  • Variables: factory->DC flow, DC->customer flow, unmet demand.
  • Constraints: DC balance, factory capacity, DC throughput, demand met or unmet.
  • Objective: transport cost plus a large penalty on unmet demand, so a feasible answer always exists.

4. Tests

Total inflow equals total outflow in every scenario; more DC capacity cannot increase unmet demand.

5. Known issues and next steps

  • Next: storage and inventory, production lines, a scenario file read by a notebook pipeline that writes parquet, and solving in AMPL or Pyomo.

6. How to run

python run.py

Needs numpy and scipy.


Part of the portfolio at https://astrenot.github.io/Arkananta-Website/. Synthetic data only.

About

Factory to DC to customer network flow with demand and capacity scenarios. Synthetic data.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages