omni_economic_order_quantity_eoq
Calculate optimal order quantity, annual order frequency, and minimum inventory holding cost from demand and cost inputs to eliminate manual arithmetic errors.
Instructions
Economic Order Quantity (EOQ) & Annual Holding Cost Calculator. Calculate optimal purchasing batch size (EOQ), annual ordering frequency, and minimized total inventory holding costs (Ford W. Harris formula). Discipline: LOGISTICS. Governing mathematical model / formula: EOQ = √[(2 · Annual Demand · Order Cost) / Annual Holding Cost per Unit].
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of optimal_eoq_units (Economic Order Quantity (EOQ)), annual_orders_count (Optimal Orders Per Year), min_total_inventory_cost (Total Annual Inventory Cost), cycle_inventory_days (Days of Supply Per Order) using annual_unit_demand (Annual Demand (Units/Year) in units/yr), order_setup_cost (Fixed Cost per Purchase Order ($)), unit_purchase_cost (Unit Item Cost ($)), holding_cost_rate_pct (Annual Carrying Cost Rate (%) in %). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Economic Order Quantity (EOQ) & Annual Holding Cost Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "economic-order-quantity-eoq"
category (string): "logistics"
name (string): "Economic Order Quantity (EOQ) & Annual Holding Cost Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.optimal_eoq_units (Economic Order Quantity (EOQ)): Formatted display string (e.g. '447 Units')
metrics.annual_orders_count (Optimal Orders Per Year): Formatted display string (e.g. '26.8 Orders / Year')
metrics.min_total_inventory_cost (Total Annual Inventory Cost): Formatted display string (e.g. '$4,025.00 / yr')
metrics.cycle_inventory_days (Days of Supply Per Order): Formatted display string (e.g. '13.6 Days')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_economic_order_quantity_eoq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_setup_cost | No | Fixed Cost per Purchase Order ($). Labor, PO processing, customs documentation, receiving fee. Default: 75. Min: 5. Max: 1000. | |
| annual_unit_demand | No | Annual Demand (Units/Year) (units/yr). Total annual sales demand in units. Default: 12000. Min: 100. Max: 1000000. | |
| unit_purchase_cost | No | Unit Item Cost ($). Cost of goods purchased from manufacturer. Default: 45. Min: 1. Max: 5000. | |
| holding_cost_rate_pct | No | Annual Carrying Cost Rate (%) (%). Warehousing, insurance, capital cost, obsolescence (typically 18-25%). Default: 20. Min: 5. Max: 40. |