How adidotio/inventory-optimization works
This is a Streamlit inventory-optimization platform. Users load benchmark or uploaded inventory data, inspect portfolio and SKU-level analytics, then compare replenishment recommendations and simulated policies. The core stages are ingestion, ABC-XYZ segmentation, stochastic safety-stock/ROP and EOQ policy calculation, budget-constrained optimization, and simulation. Edges follow shown imports/calls or explicit README capabilities; source excerpts are partial, so unverified wiring is omitted.
Main entry points: reorder_engine.py Stock health and replenishment · 2_Inventory_Analysis.py SKU analysis · 3_Recommendations.py Recommendations · data_loader.py Schema and loader
Components 14
Streamlit interface
- Application entry
app.py - Portfolio dashboard
pages/1_Dashboard.py - SKU analysis
pages/2_Inventory_Analysis.py - Recommendations
pages/3_Recommendations.py
Data ingestion
- Schema and loader
src/data_loader.py - Inventory datasets
data
Inventory analytics
- ABC-XYZ analysis
src/inventory_analysis.py - EOQ lot sizing
src/eoq.py - Safety stock and ROP
src/safety_stock.py - Stock health and replenishment
src/reorder_engine.py
Policy optimization
- Budget optimization
src/optimization.py - Policy simulation
src/simulation.py
Other components
- Inventory user
- CSV upload
Connections 24
- Inventory user → Application entry: opens
README.md - CSV upload → Application entry: uploads CSV
app.py - Application entry → Schema and loader: loads data
app.py - Inventory datasets → Schema and loader: ingested by
README.md - Application entry → Portfolio dashboard: presents
- Portfolio dashboard → Schema and loader: uses
pages/1_Dashboard.py - Portfolio dashboard → ABC-XYZ analysis: uses
pages/1_Dashboard.py - Portfolio dashboard → Stock health and replenishment: uses
pages/1_Dashboard.py - SKU analysis → Schema and loader: uses
pages/2_Inventory_Analysis.py - SKU analysis → EOQ lot sizing: uses
pages/2_Inventory_Analysis.py - SKU analysis → ABC-XYZ analysis: uses
pages/2_Inventory_Analysis.py - SKU analysis → Stock health and replenishment: uses
pages/2_Inventory_Analysis.py - SKU analysis → Safety stock and ROP: calculates thresholds
pages/2_Inventory_Analysis.py - Recommendations → Schema and loader: uses
pages/3_Recommendations.py - Recommendations → ABC-XYZ analysis: uses
pages/3_Recommendations.py - Recommendations → Stock health and replenishment: uses
pages/3_Recommendations.py - Recommendations → Budget optimization: uses
pages/3_Recommendations.py - Recommendations → Policy simulation: compares policies
pages/3_Recommendations.py - Stock health and replenishment → EOQ lot sizing: computes batch EOQ
src/reorder_engine.py - Stock health and replenishment → Safety stock and ROP: computes buffers
src/reorder_engine.py - Budget optimization → EOQ lot sizing: uses EOQ
src/optimization.py - Policy simulation → EOQ lot sizing: uses EOQ
src/simulation.py - Policy simulation → Stock health and replenishment: calculates reorder point
src/simulation.py - Policy simulation → Safety stock and ROP: calculates safety stock
src/simulation.py