Skip to content

JaqiKal/logistics-analysis

Repository files navigation

Logistics Analysis

A growing collection of simple Python scripts to visualize common flows in Supply Chain Management (SCM) using Matplotlib.

🎯 Goal

Provide visual, data-driven examples of real-world SCM challenges and metrics — from warehouse flow to lead time variability — using clean, well-structured Python code.

📦 SCM examples

Each example will live in its own folder with a self-contained Python script and visualization.

📊 Transportation Cost Analysis
  • Analyze transportation costs across different routes

  • Use scatter plots to compare cost vs distance

  • 📁 Folder: transportation-cost-analysis/

  • 📄 Script: transport_cost.py

Graph

📈 Product Flow Through Warehouse
  • A line chart showing incoming and outgoing product quantities over one week.

  • 📁 Folder: product-flow-analysis/

  • 📄 Script: productflow.py

Graph

📦 Inventory Levels Over Time
  • Simulate daily stock levels

  • Show reorder points & safety stock

  • Visualize with line charts

  • 📁 Folder: inventory-levels-over-time/

  • 📄 Script: inventory_sim.py

Graph

🚚 Order Fulfillment Timeline
  • Visualize order entry → processing → shipping

  • Use horizontal timeline (e.g., Gantt-style or step lines)

  • 📁 Folder: order-fulfillment-timeline/

  • 📄 Script: order_timeline.py

Graph

⏱️ Lead Time Variability
  • Compare supplier lead times

  • Use bar charts with error bars to show variability and risk

  • 📁 Folder: lead-time-variability/

  • 📄 Script: leadtime_chart.py

Graph Graph

⚖️ Demand vs Capacity
  • Match incoming orders vs available capacity

  • Spot bottlenecks with comparative bar charts

  • 📁 Folder: demand-vs-capacity/

  • 📄 Script: capacity_balance.py

Graph

🔁 Cycle Time Analysis
  • Show time from raw material to final product

  • Use stacked bars or time-flow graphs

  • 📁 Folder: cycle-time-analysis/

  • 📄 Script: cycle_time.py

Graph

🛠 Tech Stack

  • Python 3.12+
  • Matplotlib
  • Virtual Environment (.venv)
  • VS Code (recommended)

📌 Usage

# Clone the repo
git clone https://github.com/YOUR_USERNAME/logistics-analysis

# Navigate into a folder and activate your virtual environment
cd product-flow-analysis
python ../.venv/Scripts/activate

# Run a script
python [script_name.py]   e.g. python productflow.py 

About

Simple python script to visualize common flows in Supply Chain Management (SCM)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages