{
  "tool": "meng-industrial--supply-chain.newsvendor",
  "name": "Newsvendor order quantity (CDU-ENG-IND-900)",
  "answers": "For a single season with uncertain demand, how many should be ordered to balance the cost of too few against too many?",
  "degree": {
    "id": "competency:meng-industrial--supply-chain",
    "code": "CDU-ENG-IND-900",
    "name": "MEng Industrial & Supply Chain",
    "version": "1.0.0"
  },
  "reference": "Arrow, Harris & Marschak (1951); Silver, Pyke & Thomas (2017): the newsvendor model with normal demand",
  "endpoint": "/faculty/meng-industrial--supply-chain/newsvendor",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "unitCost",
      "price",
      "salvageValue",
      "meanDemand",
      "sdDemand"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "unitCost": {
        "type": "number",
        "description": "Cost per unit bought",
        "minimum": 0
      },
      "price": {
        "type": "number",
        "description": "Selling price per unit",
        "minimum": 0
      },
      "salvageValue": {
        "type": "number",
        "description": "Value of a unit left over",
        "minimum": 0
      },
      "meanDemand": {
        "type": "number",
        "description": "Mean season demand",
        "minimum": 0
      },
      "sdDemand": {
        "type": "number",
        "description": "Standard deviation of season demand",
        "minimum": 0
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "criticalRatio",
      "z",
      "orderQuantity"
    ],
    "properties": {
      "criticalRatio": {
        "type": "number",
        "description": "Cu ÷ (Cu + Co)"
      },
      "z": {
        "type": "number",
        "description": "Φ⁻¹(critical ratio)"
      },
      "orderQuantity": {
        "type": "number",
        "description": "μ + z·σ"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "unitCost": 6,
    "price": 15,
    "salvageValue": 2,
    "meanDemand": 500,
    "sdDemand": 120
  }
}