inventory-optimization
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInventory Optimization
库存优化
You are an expert in inventory optimization and management. Your goal is to help balance inventory costs with service levels, determining optimal stock levels, reorder points, and inventory policies that minimize total costs while meeting customer demand.
你是库存优化和管理领域的专家,你的目标是帮助用户平衡库存成本与服务水平,确定最优库存水平、再订货点和库存策略,在满足客户需求的同时最小化总成本。
Initial Assessment
初步评估
Before optimizing inventory, understand:
-
Business Context
- What products/SKUs need inventory optimization?
- Current inventory investment and turns?
- Target service levels (fill rate, stockout rate)?
- Current pain points? (excess, shortages, cash tied up)
-
Demand Characteristics
- Demand patterns? (stable, variable, seasonal, intermittent)
- Demand variability (coefficient of variation)?
- Historical sales data available? (12-24 months ideal)
- Forecast accuracy (MAPE)?
-
Supply Parameters
- Lead times from suppliers?
- Lead time variability?
- Minimum order quantities (MOQs)?
- Order costs and constraints?
-
Cost Structure
- Unit product cost?
- Ordering/setup costs per order?
- Inventory carrying cost rate (% per year)?
- Stockout/backorder costs?
在进行库存优化前,需要先明确以下信息:
-
业务背景
- 哪些产品/SKU需要做库存优化?
- 当前的库存投入和周转率是多少?
- 目标服务水平(订单满足率、缺货率)是多少?
- 当前的痛点是什么?(库存过剩、缺货、资金占用)
-
需求特征
- 需求模式是什么?(稳定、波动、季节性、间歇性)
- 需求波动性(变异系数)是多少?
- 是否有历史销售数据?(理想情况是12-24个月的数据)
- 预测准确率(MAPE)是多少?
-
供应参数
- 供应商的交货期是多久?
- 交货期的波动性如何?
- 最小起订量(MOQ)是多少?
- 订货成本和限制条件有哪些?
-
成本结构
- 产品单位成本是多少?
- 每次订货的订货/准备成本是多少?
- 库存持有成本率(每年百分比)是多少?
- 缺货/延期交货成本是多少?
Inventory Optimization Framework
库存优化框架
Key Inventory Decisions
核心库存决策
1. How Much to Order? (Order Quantity)
- Economic Order Quantity (EOQ)
- Fixed order quantity
- Lot-for-lot ordering
- Volume discounts consideration
2. When to Order? (Reorder Point)
- Continuous review (s, Q) policy
- Periodic review (s, S) policy
- Time-phased ordering
- Dynamic safety stock
3. How Much Safety Stock?
- Service level targets
- Demand variability
- Lead time variability
- Cost-service trade-offs
1. 订多少货?(订货量)
- 经济订货批量(EOQ)
- 固定订货量
- 逐批订货法
- 考虑批量折扣
2. 什么时候订货?(再订货点)
- 连续盘点(s, Q)策略
- 定期盘点(s, S)策略
- 分阶段订货
- 动态安全库存
3. 需要多少安全库存?
- 服务水平目标
- 需求波动性
- 交货期波动性
- 成本与服务的权衡
Fundamental Models
基础模型
Economic Order Quantity (EOQ)
经济订货批量(EOQ)
Classic EOQ Formula:
EOQ = sqrt((2 * D * S) / H)
Where:
D = Annual demand (units)
S = Ordering cost per order ($)
H = Holding cost per unit per year ($)Total Cost:
TC = (D/Q) * S + (Q/2) * H + D * C
Where:
Q = Order quantity
C = Unit costPython Implementation:
python
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def eoq(annual_demand, order_cost, holding_cost_rate, unit_cost):
"""
Calculate Economic Order Quantity
Parameters:
- annual_demand: Annual demand in units
- order_cost: Cost per order ($)
- holding_cost_rate: Holding cost as % of unit cost (e.g., 0.25 for 25%)
- unit_cost: Cost per unit ($)
Returns:
- Dictionary with EOQ, total cost, orders per year, etc.
"""
# Holding cost per unit per year
holding_cost = unit_cost * holding_cost_rate
# EOQ formula
eoq_qty = np.sqrt((2 * annual_demand * order_cost) / holding_cost)
# Number of orders per year
orders_per_year = annual_demand / eoq_qty
# Total annual cost
ordering_cost_total = (annual_demand / eoq_qty) * order_cost
holding_cost_total = (eoq_qty / 2) * holding_cost
purchase_cost = annual_demand * unit_cost
total_cost = ordering_cost_total + holding_cost_total + purchase_cost
# Order interval (days)
order_interval = 365 / orders_per_year
return {
'EOQ': round(eoq_qty, 0),
'Orders_Per_Year': round(orders_per_year, 1),
'Order_Interval_Days': round(order_interval, 1),
'Total_Annual_Cost': round(total_cost, 2),
'Ordering_Cost': round(ordering_cost_total, 2),
'Holding_Cost': round(holding_cost_total, 2),
'Purchase_Cost': round(purchase_cost, 2)
}经典EOQ公式:
EOQ = sqrt((2 * D * S) / H)
Where:
D = Annual demand (units)
S = Ordering cost per order ($)
H = Holding cost per unit per year ($)总成本:
TC = (D/Q) * S + (Q/2) * H + D * C
Where:
Q = Order quantity
C = Unit costPython实现:
python
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def eoq(annual_demand, order_cost, holding_cost_rate, unit_cost):
"""
Calculate Economic Order Quantity
Parameters:
- annual_demand: Annual demand in units
- order_cost: Cost per order ($)
- holding_cost_rate: Holding cost as % of unit cost (e.g., 0.25 for 25%)
- unit_cost: Cost per unit ($)
Returns:
- Dictionary with EOQ, total cost, orders per year, etc.
"""
# Holding cost per unit per year
holding_cost = unit_cost * holding_cost_rate
# EOQ formula
eoq_qty = np.sqrt((2 * annual_demand * order_cost) / holding_cost)
# Number of orders per year
orders_per_year = annual_demand / eoq_qty
# Total annual cost
ordering_cost_total = (annual_demand / eoq_qty) * order_cost
holding_cost_total = (eoq_qty / 2) * holding_cost
purchase_cost = annual_demand * unit_cost
total_cost = ordering_cost_total + holding_cost_total + purchase_cost
# Order interval (days)
order_interval = 365 / orders_per_year
return {
'EOQ': round(eoq_qty, 0),
'Orders_Per_Year': round(orders_per_year, 1),
'Order_Interval_Days': round(order_interval, 1),
'Total_Annual_Cost': round(total_cost, 2),
'Ordering_Cost': round(ordering_cost_total, 2),
'Holding_Cost': round(holding_cost_total, 2),
'Purchase_Cost': round(purchase_cost, 2)
}Example usage
Example usage
result = eoq(
annual_demand=10000,
order_cost=100,
holding_cost_rate=0.25,
unit_cost=50
)
print(f"Optimal Order Quantity: {result['EOQ']} units")
print(f"Order {result['Orders_Per_Year']} times per year")
print(f"Order every {result['Order_Interval_Days']} days")
print(f"Total Annual Cost: ${result['Total_Annual_Cost']:,.2f}")
**EOQ with Quantity Discounts:**
```python
def eoq_with_discounts(annual_demand, order_cost, holding_cost_rate, price_breaks):
"""
EOQ with all-units quantity discount
price_breaks: list of tuples [(qty, price), ...]
Example: [(0, 50), (500, 48), (1000, 45)]
"""
results = []
for qty_break, unit_price in price_breaks:
holding_cost = unit_price * holding_cost_rate
# Calculate EOQ at this price
eoq_qty = np.sqrt((2 * annual_demand * order_cost) / holding_cost)
# If EOQ < qty_break, use qty_break as order quantity
order_qty = max(eoq_qty, qty_break)
# Total cost at this quantity
ordering_cost = (annual_demand / order_qty) * order_cost
holding_cost_total = (order_qty / 2) * holding_cost
purchase_cost = annual_demand * unit_price
total_cost = ordering_cost + holding_cost_total + purchase_cost
results.append({
'Quantity_Break': qty_break,
'Unit_Price': unit_price,
'EOQ_at_Price': round(eoq_qty, 0),
'Order_Quantity': round(order_qty, 0),
'Total_Cost': round(total_cost, 2)
})
# Find minimum cost option
results_df = pd.DataFrame(results)
optimal = results_df.loc[results_df['Total_Cost'].idxmin()]
return results_df, optimalresult = eoq(
annual_demand=10000,
order_cost=100,
holding_cost_rate=0.25,
unit_cost=50
)
print(f"Optimal Order Quantity: {result['EOQ']} units")
print(f"Order {result['Orders_Per_Year']} times per year")
print(f"Order every {result['Order_Interval_Days']} days")
print(f"Total Annual Cost: ${result['Total_Annual_Cost']:,.2f}")
**带批量折扣的EOQ:**
```python
def eoq_with_discounts(annual_demand, order_cost, holding_cost_rate, price_breaks):
"""
EOQ with all-units quantity discount
price_breaks: list of tuples [(qty, price), ...]
Example: [(0, 50), (500, 48), (1000, 45)]
"""
results = []
for qty_break, unit_price in price_breaks:
holding_cost = unit_price * holding_cost_rate
# Calculate EOQ at this price
eoq_qty = np.sqrt((2 * annual_demand * order_cost) / holding_cost)
# If EOQ < qty_break, use qty_break as order quantity
order_qty = max(eoq_qty, qty_break)
# Total cost at this quantity
ordering_cost = (annual_demand / order_qty) * order_cost
holding_cost_total = (order_qty / 2) * holding_cost
purchase_cost = annual_demand * unit_price
total_cost = ordering_cost + holding_cost_total + purchase_cost
results.append({
'Quantity_Break': qty_break,
'Unit_Price': unit_price,
'EOQ_at_Price': round(eoq_qty, 0),
'Order_Quantity': round(order_qty, 0),
'Total_Cost': round(total_cost, 2)
})
# Find minimum cost option
results_df = pd.DataFrame(results)
optimal = results_df.loc[results_df['Total_Cost'].idxmin()]
return results_df, optimalExample with quantity discounts
Example with quantity discounts
price_breaks = [
(0, 50), # 0-499: $50/unit
(500, 48), # 500-999: $48/unit
(1000, 45) # 1000+: $45/unit
]
results_df, optimal = eoq_with_discounts(
annual_demand=10000,
order_cost=100,
holding_cost_rate=0.25,
price_breaks=price_breaks
)
print(results_df)
print(f"\nOptimal: Order {optimal['Order_Quantity']} units at ${optimal['Unit_Price']}/unit")
---price_breaks = [
(0, 50), # 0-499: $50/unit
(500, 48), # 500-999: $48/unit
(1000, 45) # 1000+: $45/unit
]
results_df, optimal = eoq_with_discounts(
annual_demand=10000,
order_cost=100,
holding_cost_rate=0.25,
price_breaks=price_breaks
)
print(results_df)
print(f"\nOptimal: Order {optimal['Order_Quantity']} units at ${optimal['Unit_Price']}/unit")
---Safety Stock & Reorder Point
安全库存与再订货点
Safety Stock Calculation
安全库存计算
Service Level Approach:
python
from scipy import stats
import numpy as np
def safety_stock(demand_std, lead_time_days, service_level=0.95):
"""
Calculate safety stock based on service level
Parameters:
- demand_std: Standard deviation of daily demand
- lead_time_days: Lead time in days
- service_level: Target service level (e.g., 0.95 for 95%)
Returns:
- Safety stock quantity
"""
# Z-score for desired service level
z = stats.norm.ppf(service_level)
# Safety stock = Z * std_dev during lead time
# Assuming demand is independent across days
std_during_lt = demand_std * np.sqrt(lead_time_days)
ss = z * std_during_lt
return round(ss, 0)
def safety_stock_variable_lt(demand_avg, demand_std, lead_time_avg,
lead_time_std, service_level=0.95):
"""
Safety stock with variable demand AND lead time
More comprehensive formula accounting for both sources of variability
"""
z = stats.norm.ppf(service_level)
# Combined variance formula
variance = (lead_time_avg * demand_std**2 +
demand_avg**2 * lead_time_std**2)
std_during_lt = np.sqrt(variance)
ss = z * std_during_lt
return round(ss, 0)服务水平法:
python
from scipy import stats
import numpy as np
def safety_stock(demand_std, lead_time_days, service_level=0.95):
"""
Calculate safety stock based on service level
Parameters:
- demand_std: Standard deviation of daily demand
- lead_time_days: Lead time in days
- service_level: Target service level (e.g., 0.95 for 95%)
Returns:
- Safety stock quantity
"""
# Z-score for desired service level
z = stats.norm.ppf(service_level)
# Safety stock = Z * std_dev during lead time
# Assuming demand is independent across days
std_during_lt = demand_std * np.sqrt(lead_time_days)
ss = z * std_during_lt
return round(ss, 0)
def safety_stock_variable_lt(demand_avg, demand_std, lead_time_avg,
lead_time_std, service_level=0.95):
"""
Safety stock with variable demand AND lead time
More comprehensive formula accounting for both sources of variability
"""
z = stats.norm.ppf(service_level)
# Combined variance formula
variance = (lead_time_avg * demand_std**2 +
demand_avg**2 * lead_time_std**2)
std_during_lt = np.sqrt(variance)
ss = z * std_during_lt
return round(ss, 0)Example: Basic safety stock
Example: Basic safety stock
ss = safety_stock(
demand_std=50, # Daily demand std dev
lead_time_days=14, # 2 week lead time
service_level=0.95 # 95% service level
)
print(f"Safety Stock: {ss} units")
ss = safety_stock(
demand_std=50, # Daily demand std dev
lead_time_days=14, # 2 week lead time
service_level=0.95 # 95% service level
)
print(f"Safety Stock: {ss} units")
Example: Variable lead time
Example: Variable lead time
ss_var = safety_stock_variable_lt(
demand_avg=100, # Avg daily demand
demand_std=50, # Std dev of daily demand
lead_time_avg=14, # Avg lead time (days)
lead_time_std=3, # Std dev of lead time (days)
service_level=0.95
)
print(f"Safety Stock (variable LT): {ss_var} units")
undefinedss_var = safety_stock_variable_lt(
demand_avg=100, # Avg daily demand
demand_std=50, # Std dev of daily demand
lead_time_avg=14, # Avg lead time (days)
lead_time_std=3, # Std dev of lead time (days)
service_level=0.95
)
print(f"Safety Stock (variable LT): {ss_var} units")
undefinedReorder Point (ROP)
再订货点(ROP)
Formula:
ROP = (Average Daily Demand × Lead Time) + Safety StockPython Implementation:
python
def reorder_point(demand_avg_daily, lead_time_days, safety_stock):
"""
Calculate reorder point
ROP = Expected demand during lead time + Safety stock
"""
expected_demand_lt = demand_avg_daily * lead_time_days
rop = expected_demand_lt + safety_stock
return round(rop, 0)
def rop_with_review_period(demand_avg_daily, lead_time_days,
review_period_days, safety_stock):
"""
Reorder point with periodic review
Must cover lead time + review period
"""
total_period = lead_time_days + review_period_days
expected_demand = demand_avg_daily * total_period
rop = expected_demand + safety_stock
return round(rop, 0)公式:
ROP = (Average Daily Demand × Lead Time) + Safety StockPython实现:
python
def reorder_point(demand_avg_daily, lead_time_days, safety_stock):
"""
Calculate reorder point
ROP = Expected demand during lead time + Safety stock
"""
expected_demand_lt = demand_avg_daily * lead_time_days
rop = expected_demand_lt + safety_stock
return round(rop, 0)
def rop_with_review_period(demand_avg_daily, lead_time_days,
review_period_days, safety_stock):
"""
Reorder point with periodic review
Must cover lead time + review period
"""
total_period = lead_time_days + review_period_days
expected_demand = demand_avg_daily * total_period
rop = expected_demand + safety_stock
return round(rop, 0)Example
Example
rop = reorder_point(
demand_avg_daily=100,
lead_time_days=14,
safety_stock=200
)
print(f"Reorder Point: {rop} units")
print(f"When inventory hits {rop}, place an order")
---rop = reorder_point(
demand_avg_daily=100,
lead_time_days=14,
safety_stock=200
)
print(f"Reorder Point: {rop} units")
print(f"When inventory hits {rop}, place an order")
---Inventory Policy Models
库存策略模型
(s, Q) Continuous Review Policy
(s, Q)连续盘点策略
Description:
- Monitor inventory continuously
- When inventory position ≤ s (reorder point), order Q units
- Q typically set to EOQ
python
class ContinuousReviewPolicy:
"""(s, Q) continuous review inventory policy"""
def __init__(self, reorder_point, order_quantity):
self.s = reorder_point
self.Q = order_quantity
self.inventory_position = 0
self.on_hand = 0
self.on_order = 0
self.orders_placed = []
def check_and_order(self, current_on_hand, current_on_order):
"""Check if order should be placed"""
self.on_hand = current_on_hand
self.on_order = current_on_order
self.inventory_position = current_on_hand + current_on_order
if self.inventory_position <= self.s:
# Place order
order = {
'quantity': self.Q,
'inventory_position': self.inventory_position,
'on_hand': self.on_hand,
'on_order': self.on_order
}
self.orders_placed.append(order)
return True, self.Q
return False, 0
def simulate(self, demand_series, lead_time=14):
"""Simulate inventory policy over time"""
inventory = []
current_inv = self.Q # Start with one order quantity
on_order_queue = []
for day, demand in enumerate(demand_series):
# Receive orders (if any arrive today)
arrivals = [o for o in on_order_queue if o['arrival_day'] == day]
for arrival in arrivals:
current_inv += arrival['quantity']
on_order_queue.remove(arrival)
# Satisfy demand
current_inv = max(0, current_inv - demand)
# Check if order needed
current_on_order = sum(o['quantity'] for o in on_order_queue)
should_order, order_qty = self.check_and_order(current_inv, current_on_order)
if should_order:
on_order_queue.append({
'quantity': order_qty,
'order_day': day,
'arrival_day': day + lead_time
})
inventory.append({
'day': day,
'on_hand': current_inv,
'demand': demand,
'on_order': current_on_order,
'order_placed': should_order
})
return pd.DataFrame(inventory)说明:
- 持续监控库存水平
- 当库存水平≤s(再订货点)时,订购Q单位货物
- Q通常设置为EOQ
python
class ContinuousReviewPolicy:
"""(s, Q) continuous review inventory policy"""
def __init__(self, reorder_point, order_quantity):
self.s = reorder_point
self.Q = order_quantity
self.inventory_position = 0
self.on_hand = 0
self.on_order = 0
self.orders_placed = []
def check_and_order(self, current_on_hand, current_on_order):
"""Check if order should be placed"""
self.on_hand = current_on_hand
self.on_order = current_on_order
self.inventory_position = current_on_hand + current_on_order
if self.inventory_position <= self.s:
# Place order
order = {
'quantity': self.Q,
'inventory_position': self.inventory_position,
'on_hand': self.on_hand,
'on_order': self.on_order
}
self.orders_placed.append(order)
return True, self.Q
return False, 0
def simulate(self, demand_series, lead_time=14):
"""Simulate inventory policy over time"""
inventory = []
current_inv = self.Q # Start with one order quantity
on_order_queue = []
for day, demand in enumerate(demand_series):
# Receive orders (if any arrive today)
arrivals = [o for o in on_order_queue if o['arrival_day'] == day]
for arrival in arrivals:
current_inv += arrival['quantity']
on_order_queue.remove(arrival)
# Satisfy demand
current_inv = max(0, current_inv - demand)
# Check if order needed
current_on_order = sum(o['quantity'] for o in on_order_queue)
should_order, order_qty = self.check_and_order(current_inv, current_on_order)
if should_order:
on_order_queue.append({
'quantity': order_qty,
'order_day': day,
'arrival_day': day + lead_time
})
inventory.append({
'day': day,
'on_hand': current_inv,
'demand': demand,
'on_order': current_on_order,
'order_placed': should_order
})
return pd.DataFrame(inventory)Example simulation
Example simulation
np.random.seed(42)
demand_series = np.random.poisson(100, 365) # 365 days of demand
policy = ContinuousReviewPolicy(
reorder_point=1600,
order_quantity=1000
)
results = policy.simulate(demand_series, lead_time=14)
print(f"Average inventory: {results['on_hand'].mean():.0f} units")
print(f"Stockouts: {(results['on_hand'] == 0).sum()} days")
print(f"Orders placed: {results['order_placed'].sum()}")
undefinednp.random.seed(42)
demand_series = np.random.poisson(100, 365) # 365 days of demand
policy = ContinuousReviewPolicy(
reorder_point=1600,
order_quantity=1000
)
results = policy.simulate(demand_series, lead_time=14)
print(f"Average inventory: {results['on_hand'].mean():.0f} units")
print(f"Stockouts: {(results['on_hand'] == 0).sum()} days")
print(f"Orders placed: {results['order_placed'].sum()}")
undefined(R, S) Periodic Review Policy
(R, S)定期盘点策略
Description:
- Review inventory every R periods (e.g., weekly)
- Order up to S (order-up-to level)
- Order quantity varies based on current position
python
class PeriodicReviewPolicy:
"""(R, S) periodic review inventory policy"""
def __init__(self, review_period, order_up_to_level):
self.R = review_period
self.S = order_up_to_level
def calculate_order_qty(self, current_position):
"""Calculate order quantity to reach S"""
return max(0, self.S - current_position)
def simulate(self, demand_series, lead_time=14):
"""Simulate periodic review policy"""
inventory = []
current_inv = self.S # Start at order-up-to level
on_order_queue = []
for day, demand in enumerate(demand_series):
# Receive orders
arrivals = [o for o in on_order_queue if o['arrival_day'] == day]
for arrival in arrivals:
current_inv += arrival['quantity']
on_order_queue.remove(arrival)
# Satisfy demand
current_inv = max(0, current_inv - demand)
# Check if it's a review day
should_order = (day % self.R == 0)
order_qty = 0
if should_order:
current_on_order = sum(o['quantity'] for o in on_order_queue)
current_position = current_inv + current_on_order
order_qty = self.calculate_order_qty(current_position)
if order_qty > 0:
on_order_queue.append({
'quantity': order_qty,
'order_day': day,
'arrival_day': day + lead_time
})
inventory.append({
'day': day,
'on_hand': current_inv,
'demand': demand,
'order_qty': order_qty,
'review_day': should_order
})
return pd.DataFrame(inventory)说明:
- 每R个周期盘点一次库存(例如每周)
- 订货至S水平(最高库存水平)
- 订货量根据当前库存水平动态调整
python
class PeriodicReviewPolicy:
"""(R, S) periodic review inventory policy"""
def __init__(self, review_period, order_up_to_level):
self.R = review_period
self.S = order_up_to_level
def calculate_order_qty(self, current_position):
"""Calculate order quantity to reach S"""
return max(0, self.S - current_position)
def simulate(self, demand_series, lead_time=14):
"""Simulate periodic review policy"""
inventory = []
current_inv = self.S # Start at order-up-to level
on_order_queue = []
for day, demand in enumerate(demand_series):
# Receive orders
arrivals = [o for o in on_order_queue if o['arrival_day'] == day]
for arrival in arrivals:
current_inv += arrival['quantity']
on_order_queue.remove(arrival)
# Satisfy demand
current_inv = max(0, current_inv - demand)
# Check if it's a review day
should_order = (day % self.R == 0)
order_qty = 0
if should_order:
current_on_order = sum(o['quantity'] for o in on_order_queue)
current_position = current_inv + current_on_order
order_qty = self.calculate_order_qty(current_position)
if order_qty > 0:
on_order_queue.append({
'quantity': order_qty,
'order_day': day,
'arrival_day': day + lead_time
})
inventory.append({
'day': day,
'on_hand': current_inv,
'demand': demand,
'order_qty': order_qty,
'review_day': should_order
})
return pd.DataFrame(inventory)Example
Example
policy = PeriodicReviewPolicy(
review_period=7, # Weekly review
order_up_to_level=2100
)
results = policy.simulate(demand_series, lead_time=14)
print(f"Average inventory: {results['on_hand'].mean():.0f} units")
print(f"Total orders: {(results['order_qty'] > 0).sum()}")
---policy = PeriodicReviewPolicy(
review_period=7, # Weekly review
order_up_to_level=2100
)
results = policy.simulate(demand_series, lead_time=14)
print(f"Average inventory: {results['on_hand'].mean():.0f} units")
print(f"Total orders: {(results['order_qty'] > 0).sum()}")
---ABC Analysis & Segmentation
ABC分析与库存细分
ABC Classification
ABC分类
Methodology:
- A items: Top 20% of SKUs by value, ~80% of revenue
- B items: Next 30% of SKUs, ~15% of revenue
- C items: Bottom 50% of SKUs, ~5% of revenue
python
def abc_analysis(df, sku_col='sku', demand_col='annual_demand',
price_col='unit_price'):
"""
Perform ABC analysis on inventory
Parameters:
- df: DataFrame with SKU, demand, and price
- Returns: DataFrame with ABC classification
"""
# Calculate annual value
df = df.copy()
df['annual_value'] = df[demand_col] * df[price_col]
# Sort by value descending
df = df.sort_values('annual_value', ascending=False)
# Calculate cumulative percentage
total_value = df['annual_value'].sum()
df['cumulative_value'] = df['annual_value'].cumsum()
df['cumulative_pct'] = df['cumulative_value'] / total_value * 100
# Classify
def classify(pct):
if pct <= 80:
return 'A'
elif pct <= 95:
return 'B'
else:
return 'C'
df['abc_class'] = df['cumulative_pct'].apply(classify)
# Add ranking
df['rank'] = range(1, len(df) + 1)
return df方法论:
- A类商品:价值排名前20%的SKU,贡献约80%的营收
- B类商品:接下来30%的SKU,贡献约15%的营收
- C类商品:最后50%的SKU,贡献约5%的营收
python
def abc_analysis(df, sku_col='sku', demand_col='annual_demand',
price_col='unit_price'):
"""
Perform ABC analysis on inventory
Parameters:
- df: DataFrame with SKU, demand, and price
- Returns: DataFrame with ABC classification
"""
# Calculate annual value
df = df.copy()
df['annual_value'] = df[demand_col] * df[price_col]
# Sort by value descending
df = df.sort_values('annual_value', ascending=False)
# Calculate cumulative percentage
total_value = df['annual_value'].sum()
df['cumulative_value'] = df['annual_value'].cumsum()
df['cumulative_pct'] = df['cumulative_value'] / total_value * 100
# Classify
def classify(pct):
if pct <= 80:
return 'A'
elif pct <= 95:
return 'B'
else:
return 'C'
df['abc_class'] = df['cumulative_pct'].apply(classify)
# Add ranking
df['rank'] = range(1, len(df) + 1)
return dfExample usage
Example usage
inventory_data = pd.DataFrame({
'sku': [f'SKU_{i}' for i in range(1, 101)],
'annual_demand': np.random.randint(100, 10000, 100),
'unit_price': np.random.uniform(10, 500, 100)
})
abc_result = abc_analysis(inventory_data)
inventory_data = pd.DataFrame({
'sku': [f'SKU_{i}' for i in range(1, 101)],
'annual_demand': np.random.randint(100, 10000, 100),
'unit_price': np.random.uniform(10, 500, 100)
})
abc_result = abc_analysis(inventory_data)
Summary by class
Summary by class
summary = abc_result.groupby('abc_class').agg({
'sku': 'count',
'annual_value': 'sum'
}).round(0)
summary['pct_skus'] = summary['sku'] / summary['sku'].sum() * 100
summary['pct_value'] = summary['annual_value'] / summary['annual_value'].sum() * 100
print(summary)
undefinedsummary = abc_result.groupby('abc_class').agg({
'sku': 'count',
'annual_value': 'sum'
}).round(0)
summary['pct_skus'] = summary['sku'] / summary['sku'].sum() * 100
summary['pct_value'] = summary['annual_value'] / summary['annual_value'].sum() * 100
print(summary)
undefinedXYZ Analysis (Demand Variability)
XYZ分析(需求波动性)
Classification:
- X: Low variability (CV < 0.5) - Predictable
- Y: Medium variability (0.5 ≤ CV < 1.0) - Moderate
- Z: High variability (CV ≥ 1.0) - Unpredictable
python
def xyz_analysis(df, demand_history_col='demand_history'):
"""
Classify items by demand variability
demand_history_col should contain list/array of historical demand
"""
def classify_variability(demands):
if len(demands) < 2:
return 'Z' # Insufficient data
mean_demand = np.mean(demands)
std_demand = np.std(demands)
if mean_demand == 0:
return 'Z'
cv = std_demand / mean_demand # Coefficient of variation
if cv < 0.5:
return 'X'
elif cv < 1.0:
return 'Y'
else:
return 'Z'
df = df.copy()
df['xyz_class'] = df[demand_history_col].apply(classify_variability)
return df分类规则:
- X类:低波动性(变异系数CV < 0.5)- 需求可预测
- Y类:中等波动性(0.5 ≤ CV < 1.0)- 需求波动适中
- Z类:高波动性(CV ≥ 1.0)- 需求难以预测
python
def xyz_analysis(df, demand_history_col='demand_history'):
"""
Classify items by demand variability
demand_history_col should contain list/array of historical demand
"""
def classify_variability(demands):
if len(demands) < 2:
return 'Z' # Insufficient data
mean_demand = np.mean(demands)
std_demand = np.std(demands)
if mean_demand == 0:
return 'Z'
cv = std_demand / mean_demand # Coefficient of variation
if cv < 0.5:
return 'X'
elif cv < 1.0:
return 'Y'
else:
return 'Z'
df = df.copy()
df['xyz_class'] = df[demand_history_col].apply(classify_variability)
return dfCombined ABC-XYZ matrix
Combined ABC-XYZ matrix
def abc_xyz_matrix(df):
"""Create ABC-XYZ classification matrix"""
matrix = pd.crosstab(df['abc_class'], df['xyz_class'],
values=df['sku'], aggfunc='count')
return matrixundefineddef abc_xyz_matrix(df):
"""Create ABC-XYZ classification matrix"""
matrix = pd.crosstab(df['abc_class'], df['xyz_class'],
values=df['sku'], aggfunc='count')
return matrixundefinedInventory Policy by Classification
按分类匹配库存策略
| Class | Service Level | Review Frequency | Safety Stock | Method |
|---|---|---|---|---|
| A-X | 99% | Daily | High | Continuous review, tight control |
| A-Y | 98% | Daily | High | Continuous review |
| A-Z | 95% | Weekly | Very high | Periodic review, high SS |
| B-X | 97% | Weekly | Medium | Periodic or continuous |
| B-Y | 95% | Weekly | Medium | Periodic review |
| B-Z | 90% | Bi-weekly | High | Periodic review |
| C-X | 90% | Monthly | Low | Periodic review, simple rules |
| C-Y | 85% | Monthly | Medium | Min/max rules |
| C-Z | 80% | As needed | Low/none | Order on demand or don't stock |
| 分类 | 服务水平 | 盘点频率 | 安全库存 | 管理方法 |
|---|---|---|---|---|
| A-X | 99% | 每日 | 高 | 连续盘点,严格管控 |
| A-Y | 98% | 每日 | 高 | 连续盘点 |
| A-Z | 95% | 每周 | 极高 | 定期盘点,高安全库存 |
| B-X | 97% | 每周 | 中 | 定期或连续盘点 |
| B-Y | 95% | 每周 | 中 | 定期盘点 |
| B-Z | 90% | 每两周 | 高 | 定期盘点 |
| C-X | 90% | 每月 | 低 | 定期盘点,简单规则 |
| C-Y | 85% | 每月 | 中 | 最小/最大库存规则 |
| C-Z | 80% | 按需 | 低/无 | 按需订货或不备货 |
Advanced Inventory Optimization
高级库存优化
Service Level vs. Cost Trade-off
服务水平与成本权衡
python
def service_level_analysis(demand_std, lead_time, unit_cost,
holding_cost_rate, stockout_cost):
"""
Analyze optimal service level balancing holding vs. stockout costs
"""
service_levels = np.arange(0.80, 0.995, 0.01)
results = []
holding_cost_per_unit = unit_cost * holding_cost_rate
for sl in service_levels:
# Safety stock required
z = stats.norm.ppf(sl)
std_during_lt = demand_std * np.sqrt(lead_time)
ss = z * std_during_lt
# Holding cost
holding_cost = ss * holding_cost_per_unit
# Expected stockout cost
# Simplified: (1 - service_level) * stockout_cost
expected_stockouts = (1 - sl) * stockout_cost
total_cost = holding_cost + expected_stockouts
results.append({
'service_level': sl,
'safety_stock': round(ss, 0),
'holding_cost': round(holding_cost, 2),
'stockout_cost': round(expected_stockouts, 2),
'total_cost': round(total_cost, 2)
})
results_df = pd.DataFrame(results)
# Find optimal
optimal_idx = results_df['total_cost'].idxmin()
optimal = results_df.iloc[optimal_idx]
return results_df, optimalpython
def service_level_analysis(demand_std, lead_time, unit_cost,
holding_cost_rate, stockout_cost):
"""
Analyze optimal service level balancing holding vs. stockout costs
"""
service_levels = np.arange(0.80, 0.995, 0.01)
results = []
holding_cost_per_unit = unit_cost * holding_cost_rate
for sl in service_levels:
# Safety stock required
z = stats.norm.ppf(sl)
std_during_lt = demand_std * np.sqrt(lead_time)
ss = z * std_during_lt
# Holding cost
holding_cost = ss * holding_cost_per_unit
# Expected stockout cost
# Simplified: (1 - service_level) * stockout_cost
expected_stockouts = (1 - sl) * stockout_cost
total_cost = holding_cost + expected_stockouts
results.append({
'service_level': sl,
'safety_stock': round(ss, 0),
'holding_cost': round(holding_cost, 2),
'stockout_cost': round(expected_stockouts, 2),
'total_cost': round(total_cost, 2)
})
results_df = pd.DataFrame(results)
# Find optimal
optimal_idx = results_df['total_cost'].idxmin()
optimal = results_df.iloc[optimal_idx]
return results_df, optimalExample
Example
results_df, optimal = service_level_analysis(
demand_std=50,
lead_time=14,
unit_cost=100,
holding_cost_rate=0.25,
stockout_cost=5000 # Cost per stockout event
)
print(f"Optimal service level: {optimal['service_level']:.1%}")
print(f"Safety stock: {optimal['safety_stock']} units")
print(f"Total cost: ${optimal['total_cost']:,.2f}")
undefinedresults_df, optimal = service_level_analysis(
demand_std=50,
lead_time=14,
unit_cost=100,
holding_cost_rate=0.25,
stockout_cost=5000 # Cost per stockout event
)
print(f"Optimal service level: {optimal['service_level']:.1%}")
print(f"Safety stock: {optimal['safety_stock']} units")
print(f"Total cost: ${optimal['total_cost']:,.2f}")
undefinedInventory Turnover Optimization
库存周转率优化
Inventory Turns Formula:
Inventory Turns = Cost of Goods Sold (COGS) / Average Inventory Valuepython
def inventory_metrics(annual_cogs, avg_inventory_value, target_turns=None):
"""
Calculate inventory turnover metrics
"""
turns = annual_cogs / avg_inventory_value
days_on_hand = 365 / turns
metrics = {
'Inventory_Turns': round(turns, 2),
'Days_On_Hand': round(days_on_hand, 1),
'Avg_Inventory': avg_inventory_value
}
if target_turns:
target_inventory = annual_cogs / target_turns
reduction = avg_inventory_value - target_inventory
metrics['Target_Inventory'] = round(target_inventory, 0)
metrics['Inventory_Reduction'] = round(reduction, 0)
metrics['Cash_Freed'] = round(reduction, 0)
return metrics库存周转率公式:
Inventory Turns = Cost of Goods Sold (COGS) / Average Inventory Valuepython
def inventory_metrics(annual_cogs, avg_inventory_value, target_turns=None):
"""
Calculate inventory turnover metrics
"""
turns = annual_cogs / avg_inventory_value
days_on_hand = 365 / turns
metrics = {
'Inventory_Turns': round(turns, 2),
'Days_On_Hand': round(days_on_hand, 1),
'Avg_Inventory': avg_inventory_value
}
if target_turns:
target_inventory = annual_cogs / target_turns
reduction = avg_inventory_value - target_inventory
metrics['Target_Inventory'] = round(target_inventory, 0)
metrics['Inventory_Reduction'] = round(reduction, 0)
metrics['Cash_Freed'] = round(reduction, 0)
return metricsExample
Example
metrics = inventory_metrics(
annual_cogs=50_000_000,
avg_inventory_value=10_000_000,
target_turns=8
)
print(f"Current turns: {metrics['Inventory_Turns']}")
print(f"Days on hand: {metrics['Days_On_Hand']}")
if 'Target_Inventory' in metrics:
print(f"Target inventory: ${metrics['Target_Inventory']:,.0f}")
print(f"Cash to be freed: ${metrics['Cash_Freed']:,.0f}")
undefinedmetrics = inventory_metrics(
annual_cogs=50_000_000,
avg_inventory_value=10_000_000,
target_turns=8
)
print(f"Current turns: {metrics['Inventory_Turns']}")
print(f"Days on hand: {metrics['Days_On_Hand']}")
if 'Target_Inventory' in metrics:
print(f"Target inventory: ${metrics['Target_Inventory']:,.0f}")
print(f"Cash to be freed: ${metrics['Cash_Freed']:,.0f}")
undefinedMulti-SKU Optimization
多SKU库存优化
python
from scipy.optimize import minimize
def optimize_multi_sku_inventory(skus_data, total_budget, target_service_level=0.95):
"""
Optimize inventory allocation across multiple SKUs with budget constraint
skus_data: DataFrame with columns ['sku', 'demand_avg', 'demand_std',
'lead_time', 'unit_cost', 'stockout_cost']
"""
n_skus = len(skus_data)
def objective(safety_stocks):
"""Minimize total cost (holding + expected stockouts)"""
total_cost = 0
for i, ss in enumerate(safety_stocks):
row = skus_data.iloc[i]
# Holding cost
holding_cost = ss * row['unit_cost'] * 0.25 # 25% holding rate
# Calculate achieved service level from safety stock
z = ss / (row['demand_std'] * np.sqrt(row['lead_time']))
service_level = stats.norm.cdf(z)
# Stockout cost
stockout_prob = 1 - service_level
expected_stockout = stockout_prob * row['stockout_cost']
total_cost += holding_cost + expected_stockout
return total_cost
def budget_constraint(safety_stocks):
"""Total inventory value must not exceed budget"""
total_value = sum(
ss * skus_data.iloc[i]['unit_cost']
for i, ss in enumerate(safety_stocks)
)
return total_budget - total_value
# Initial guess: equal allocation
x0 = np.full(n_skus, total_budget / (n_skus * skus_data['unit_cost'].mean()))
# Constraints
constraints = [
{'type': 'ineq', 'fun': budget_constraint}
]
# Bounds: non-negative safety stock
bounds = [(0, None) for _ in range(n_skus)]
# Optimize
result = minimize(objective, x0, method='SLSQP',
bounds=bounds, constraints=constraints)
# Extract results
optimal_ss = result.x
results_df = skus_data.copy()
results_df['optimal_safety_stock'] = optimal_ss
results_df['inventory_value'] = optimal_ss * results_df['unit_cost']
return results_df, resultpython
from scipy.optimize import minimize
def optimize_multi_sku_inventory(skus_data, total_budget, target_service_level=0.95):
"""
Optimize inventory allocation across multiple SKUs with budget constraint
skus_data: DataFrame with columns ['sku', 'demand_avg', 'demand_std',
'lead_time', 'unit_cost', 'stockout_cost']
"""
n_skus = len(skus_data)
def objective(safety_stocks):
"""Minimize total cost (holding + expected stockouts)"""
total_cost = 0
for i, ss in enumerate(safety_stocks):
row = skus_data.iloc[i]
# Holding cost
holding_cost = ss * row['unit_cost'] * 0.25 # 25% holding rate
# Calculate achieved service level from safety stock
z = ss / (row['demand_std'] * np.sqrt(row['lead_time']))
service_level = stats.norm.cdf(z)
# Stockout cost
stockout_prob = 1 - service_level
expected_stockout = stockout_prob * row['stockout_cost']
total_cost += holding_cost + expected_stockout
return total_cost
def budget_constraint(safety_stocks):
"""Total inventory value must not exceed budget"""
total_value = sum(
ss * skus_data.iloc[i]['unit_cost']
for i, ss in enumerate(safety_stocks)
)
return total_budget - total_value
# Initial guess: equal allocation
x0 = np.full(n_skus, total_budget / (n_skus * skus_data['unit_cost'].mean()))
# Constraints
constraints = [
{'type': 'ineq', 'fun': budget_constraint}
]
# Bounds: non-negative safety stock
bounds = [(0, None) for _ in range(n_skus)]
# Optimize
result = minimize(objective, x0, method='SLSQP',
bounds=bounds, constraints=constraints)
# Extract results
optimal_ss = result.x
results_df = skus_data.copy()
results_df['optimal_safety_stock'] = optimal_ss
results_df['inventory_value'] = optimal_ss * results_df['unit_cost']
return results_df, resultExample with multiple SKUs
Example with multiple SKUs
skus_data = pd.DataFrame({
'sku': ['A', 'B', 'C', 'D'],
'demand_avg': [100, 200, 50, 150],
'demand_std': [20, 40, 25, 30],
'lead_time': [14, 7, 21, 14],
'unit_cost': [50, 30, 100, 75],
'stockout_cost': [500, 300, 1000, 600]
})
results_df, optimization = optimize_multi_sku_inventory(
skus_data,
total_budget=50000,
target_service_level=0.95
)
print(results_df[['sku', 'optimal_safety_stock', 'inventory_value']])
print(f"\nTotal inventory value: ${results_df['inventory_value'].sum():,.0f}")
---skus_data = pd.DataFrame({
'sku': ['A', 'B', 'C', 'D'],
'demand_avg': [100, 200, 50, 150],
'demand_std': [20, 40, 25, 30],
'lead_time': [14, 7, 21, 14],
'unit_cost': [50, 30, 100, 75],
'stockout_cost': [500, 300, 1000, 600]
})
results_df, optimization = optimize_multi_sku_inventory(
skus_data,
total_budget=50000,
target_service_level=0.95
)
print(results_df[['sku', 'optimal_safety_stock', 'inventory_value']])
print(f"\nTotal inventory value: ${results_df['inventory_value'].sum():,.0f}")
---Tools & Libraries
工具与库
Python Libraries
Python库
Inventory Optimization:
- : Numerical computations
numpy - : Statistical distributions, optimization
scipy - : Data manipulation
pandas - : Time series analysis
statsmodels
Simulation:
- : Discrete event simulation
simpy - : Queueing network simulation
ciw
Optimization:
- : Non-linear optimization
scipy.optimize - : Linear programming
pulp - : Optimization modeling
pyomo
Visualization:
- ,
matplotlib: Plottingseaborn - : Interactive charts
plotly
库存优化相关:
- :数值计算
numpy - :统计分布、优化计算
scipy - :数据处理
pandas - :时间序列分析
statsmodels
仿真相关:
- :离散事件仿真
simpy - :排队网络仿真
ciw
优化相关:
- :非线性优化
scipy.optimize - :线性规划
pulp - :优化建模
pyomo
可视化相关:
- 、
matplotlib:绘图seaborn - :交互式图表
plotly
Commercial Software
商业软件
Inventory Planning:
- SAP IBP: Integrated business planning
- Blue Yonder (JDA): Inventory optimization
- Kinaxis RapidResponse: Supply chain planning
- Logility: Inventory optimization
- o9 Solutions: Digital planning platform
Specialized Tools:
- Inventory Planner: E-commerce inventory
- Lokad: Probabilistic forecasting & inventory
- NetSuite: ERP with inventory management
- Fishbowl: Inventory tracking & management
库存规划类:
- SAP IBP:集成业务规划
- Blue Yonder (JDA):库存优化
- Kinaxis RapidResponse:供应链规划
- Logility:库存优化
- o9 Solutions:数字化规划平台
专用工具类:
- Inventory Planner:电商库存管理
- Lokad:概率预测与库存管理
- NetSuite:带库存管理功能的ERP
- Fishbowl:库存跟踪与管理
Common Challenges & Solutions
常见挑战与解决方案
Challenge: Demand Variability
挑战:需求波动大
Problem:
- High demand variability increases safety stock requirements
- Difficult to forecast
Solutions:
- Segment by ABC-XYZ, different policies per segment
- Use probabilistic forecasting (distribution, not point estimate)
- Consider demand smoothing strategies (promotions management)
- Increase forecast frequency (weekly vs. monthly)
- Implement demand sensing with real-time data
问题:
- 高需求波动会提高安全库存要求
- 预测难度大
解决方案:
- 按ABC-XYZ分类,不同分类采用不同策略
- 使用概率预测(输出分布而非单点估计)
- 考虑需求平滑策略(促销管理)
- 提高预测频率(周度而非月度)
- 基于实时数据实现需求感知
Challenge: Long Lead Times
挑战:交货期长
Problem:
- Longer lead times require more safety stock
- Higher risk of stockouts or obsolescence
Solutions:
- Work with suppliers to reduce lead time
- Implement vendor-managed inventory (VMI)
- Use safety lead time padding
- Consider dual sourcing for critical items
- Air freight for critical replenishments
问题:
- 更长的交货期需要更多安全库存
- 缺货或库存过时的风险更高
解决方案:
- 与供应商合作缩短交货期
- 实施供应商管理库存(VMI)
- 使用安全交货期缓冲
- 关键物料考虑双供应商采购
- 紧急补货采用空运
Challenge: Excess Inventory
挑战:库存过剩
Problem:
- Too much slow-moving or obsolete inventory
- Cash tied up, storage costs
Solutions:
- Implement ABC analysis, focus on C items
- Markdown/clearance strategies
- Return to supplier agreements
- Improved demand forecasting
- Reduce order quantities for slow movers
- Consider drop-ship for long tail items
问题:
- 滞销或过时库存过多
- 资金占用高,仓储成本高
解决方案:
- 实施ABC分析,重点管控C类商品
- 降价/清仓策略
- 与供应商签订退货协议
- 提升需求预测准确率
- 降低滞销商品的订货量
- 长尾商品考虑一件代发
Challenge: Stockouts & Backorders
挑战:缺货与延期交货
Problem:
- Insufficient inventory, lost sales
- Poor customer service
Solutions:
- Increase safety stock (cost-service trade-off)
- Improve forecast accuracy
- Reduce lead time variability
- Implement expedited shipping options
- Better supply chain visibility
- Consider make-to-order for low-volume items
问题:
- 库存不足,损失销售额
- 客户服务体验差
解决方案:
- 提高安全库存(平衡成本与服务)
- 提升预测准确率
- 降低交货期波动性
- 提供加急配送选项
- 提升供应链可见性
- 低销量商品考虑按单生产
Challenge: Balancing Cost vs. Service
挑战:平衡成本与服务水平
Problem:
- Conflicting objectives (minimize inventory vs. maximize service)
Solutions:
- Quantify stockout costs (lost sales, penalties)
- Use optimization to find optimal trade-off
- Segment inventory (different service levels by class)
- Implement service level agreements (SLAs)
- Use cost-to-serve analysis
问题:
- 目标存在冲突(最小化库存vs最大化服务水平)
解决方案:
- 量化缺货成本(销售额损失、罚款)
- 使用优化模型找到最优平衡点
- 库存分类管理(不同分类设置不同服务水平)
- 签署服务水平协议(SLA)
- 开展服务成本分析
Challenge: Multi-Echelon Complexity
挑战:多级库存复杂度高
Problem:
- Inventory at multiple locations (plants, DCs, stores)
- Difficult to optimize holistically
Solutions:
- See multi-echelon-inventory skill
- Use network optimization models
- Implement demand-driven replenishment
- Centralize planning (but not necessarily inventory)
- Consider postponement strategies
问题:
- 库存分布在多个节点(工厂、配送中心、门店)
- 很难实现全局优化
解决方案:
- 参考multi-echelon-inventory技能
- 使用网络优化模型
- 实施需求驱动补货
- 集中规划(但不一定集中库存)
- 考虑延迟策略
Output Format
输出格式
Inventory Optimization Report
库存优化报告
Executive Summary:
- Current inventory investment and turns
- Recommended inventory levels and policies
- Expected service level improvements
- Working capital impact
SKU-Level Recommendations:
| SKU | ABC | XYZ | Current Avg Inv | Recommended Avg Inv | Safety Stock | Reorder Point | Order Qty | Policy | Service Level |
|---|---|---|---|---|---|---|---|---|---|
| SKU_001 | A | X | 500 | 450 | 200 | 1,600 | 1,000 | (s,Q) | 99% |
| SKU_002 | B | Y | 300 | 280 | 120 | 850 | 500 | (R,S) | 95% |
| SKU_003 | C | Z | 150 | 50 | 30 | 250 | Min/Max | Monthly | 85% |
Financial Impact:
| Metric | Current | Optimized | Improvement |
|---|---|---|---|
| Total Inventory Value | $15M | $12M | -$3M (-20%) |
| Inventory Turns | 4.5 | 6.0 | +1.5 (+33%) |
| Days on Hand | 81 | 61 | -20 days |
| Fill Rate | 92% | 97% | +5 pts |
| Annual Holding Cost | $3.75M | $3.0M | -$750K |
Implementation Plan:
- Phase 1: Implement policies for A items (80% of value)
- Phase 2: Roll out to B items
- Phase 3: Simplify C item management
- Ongoing: Monitor and adjust based on performance
执行摘要:
- 当前库存投入与周转率
- 建议的库存水平与策略
- 预期服务水平提升幅度
- 对营运资金的影响
SKU级建议:
| SKU | ABC | XYZ | 当前平均库存 | 建议平均库存 | 安全库存 | 再订货点 | 订货量 | 管理策略 | 服务水平 |
|---|---|---|---|---|---|---|---|---|---|
| SKU_001 | A | X | 500 | 450 | 200 | 1,600 | 1,000 | (s,Q) | 99% |
| SKU_002 | B | Y | 300 | 280 | 120 | 850 | 500 | (R,S) | 95% |
| SKU_003 | C | Z | 150 | 50 | 30 | 250 | Min/Max | 月度盘点 | 85% |
财务影响:
| 指标 | 当前值 | 优化后 | 提升幅度 |
|---|---|---|---|
| 总库存价值 | $15M | $12M | -$3M (-20%) |
| 库存周转率 | 4.5 | 6.0 | +1.5 (+33%) |
| 库存周转天数 | 81 | 61 | -20天 |
| 订单满足率 | 92% | 97% | +5个百分点 |
| 年持有成本 | $3.75M | $3.0M | -$750K |
实施计划:
- 第一阶段:针对A类商品(占80%价值)实施新策略
- 第二阶段:推广至B类商品
- 第三阶段:简化C类商品管理
- 持续运营:基于表现监控并调整策略
Questions to Ask
需询问的问题
If you need more context:
- What products/SKUs need optimization? How many total?
- What's the current inventory investment and turnover?
- What service levels are you targeting?
- What's the demand pattern? (stable, variable, seasonal, intermittent)
- What are the lead times from suppliers?
- What cost data is available? (product cost, ordering cost, holding cost rate)
- What's driving this initiative? (cost reduction, service improvement, working capital)
如果需要更多上下文信息,可以询问以下问题:
- 哪些产品/SKU需要优化?总共有多少个?
- 当前的库存投入和周转率是多少?
- 你的目标服务水平是多少?
- 需求模式是什么样的?(稳定、波动、季节性、间歇性)
- 供应商的交货期是多久?
- 有哪些可用的成本数据?(产品成本、订货成本、持有成本率)
- 本次优化的驱动因素是什么?(成本削减、服务提升、营运资金优化)
Related Skills
相关技能
- economic-order-quantity: Deep dive into EOQ models
- demand-forecasting: Forecasting for inventory planning
- multi-echelon-inventory: Network inventory optimization
- stochastic-inventory-models: Probabilistic approaches
- newsvendor-problem: Single-period inventory decisions
- supply-chain-analytics: KPIs and performance metrics
- abc-analysis: Classification and segmentation (if separate skill exists)
- warehouse-slotting-optimization: Optimizing inventory placement
- economic-order-quantity:深入了解EOQ模型
- demand-forecasting:库存规划所需的需求预测
- multi-echelon-inventory:网络库存优化
- stochastic-inventory-models:概率性库存方法
- newsvendor-problem:单周期库存决策
- supply-chain-analytics:KPI与绩效指标
- abc-analysis:库存分类与细分(如果存在独立技能)
- warehouse-slotting-optimization:优化库位摆放