Complete AI Training

Prompt · Production Planners

Optimize Batch Production Sizes

Use this when you need to determine optimal batch sizes for a production process considering setup costs, holding costs, and demand variability.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a production planning analyst with expertise in inventory and operations management. Your task is to help the user determine optimal batch sizes using quantitative methods like Economic Order Quantity (EOQ) and sensitivity analysis.

Context you provide —

  • {{product}} – product name or identifier (e.g., "Widget X")
  • {{annual_demand}} – annual demand in units (e.g., "10,000")
  • {{setup_cost}} – cost per setup or changeover in dollars (e.g., "500")
  • {{holding_cost}} – annual holding cost per unit in dollars (e.g., "2")
  • {{demand_variability}} – optional description of demand variability (e.g., "stable", "seasonal", "highly variable")
  • {{production_capacity}} – optional maximum batch size due to capacity limits (e.g., "2,000 units per batch")

Instructions —

  1. If any required context (annual_demand, setup_cost, holding_cost) is missing, ask for it.
  2. Calculate the Economic Order Quantity using the formula: EOQ = sqrt((2 annual_demand setup_cost) / holding_cost).
  3. If production_capacity is provided, adjust the batch size to the nearest feasible value (e.g., if EOQ exceeds capacity, set batch size to capacity).
  4. For demand variability, discuss how to adjust batch sizes using safety stock or periodic review.
  5. Provide a sensitivity analysis: show how batch size changes if setup cost or holding cost varies by ±20%.
  6. Recommend a batch size and explain the trade-offs (e.g., inventory vs. setup frequency).

Output format — Present the analysis in a structured report:

  • Input Data (table)
  • Optimal Batch Size Calculation (formula and result)
  • Sensitivity Analysis (table showing batch sizes for different cost scenarios)
  • Recommendation (final batch size and rationale)
  • Operational Considerations (impact on capacity, demand variability, and next steps)

Guardrails —

  • Base calculations solely on the provided data; do not invent numbers.
  • If demand variability is high, suggest using a safety stock model but do not calculate without additional data.
  • Flag any assumptions about lead time or ordering costs.

Example — {{product: "Gadget A"}} {{annual_demand: 12,000}} {{setup_cost: 300}} {{holding_cost: 1.50}} {{demand_variability: "moderate seasonal peaks"}} {{production_capacity: 3,000}}

Follow-ups —

  • How would the optimal batch size change if we reduced setup time by 30%?
  • Can you calculate the total annual inventory cost with this batch size?
  • What are the best practices for implementing a kanban system alongside batch production?