{
  "tool": "meng-industrial--supply-chain.eoq",
  "name": "Economic order quantity (CDU-ENG-IND-900)",
  "answers": "How much should be ordered at a time to minimise ordering plus holding cost, and what does that cost a year?",
  "degree": {
    "id": "competency:meng-industrial--supply-chain",
    "code": "CDU-ENG-IND-900",
    "name": "MEng Industrial & Supply Chain",
    "version": "1.0.0"
  },
  "reference": "Harris, F. W. (1913) How many parts to make at once; ASCM CPIM — the EOQ model",
  "endpoint": "/faculty/meng-industrial--supply-chain/eoq",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "annualDemand",
      "orderCost",
      "holdingCostPerUnitYear"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "annualDemand": {
        "type": "number",
        "description": "Units demanded per year",
        "minimum": 0.01
      },
      "orderCost": {
        "type": "number",
        "description": "Cost per order placed",
        "minimum": 0.01
      },
      "holdingCostPerUnitYear": {
        "type": "number",
        "description": "Cost to hold one unit for a year",
        "minimum": 0.0001
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "eoq",
      "ordersPerYear",
      "annualCost"
    ],
    "properties": {
      "eoq": {
        "type": "number",
        "description": "Optimal order quantity"
      },
      "ordersPerYear": {
        "type": "number",
        "description": "D ÷ Q*"
      },
      "annualCost": {
        "type": "number",
        "description": "Ordering + holding at Q*"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "annualDemand": 12000,
    "orderCost": 150,
    "holdingCostPerUnitYear": 4
  }
}