calc_eoq
Calculate optimal order quantities and expected orders per year using the Economic Order Quantity formula based on annual demand, ordering cost, and holding cost.
Instructions
Economic Order Quantity (EOQ = √(2DS / H)) for each item. D = annual demand, S = ordering cost per order, H = holding cost per unit per year (unit cost × holding rate). Returns optimal order quantities and expected orders per year.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Max items to return (default 50) | |
| holdingRate | No | Annual holding cost as fraction of unit cost (default 0.25 = 25%) | |
| demandMonths | No | Months of sales history for demand estimate (default 12, max 24) | |
| orderingCost | No | Fixed cost per purchase order (default 50) |