{
  "tool": "meng-eee.ups_autonomy",
  "name": "UPS autonomy (CDU-ENG-EEE-900)",
  "answers": "How long will a battery string carry a load, and what string gives a required ride-through?",
  "degree": {
    "id": "competency:meng-eee",
    "code": "CDU-ENG-EEE-900",
    "name": "Master of Engineering — Electrical & Electronic Engineering",
    "version": "1.0.2"
  },
  "reference": "Autonomy = usable energy ÷ load power, with inverter efficiency and depth of discharge",
  "endpoint": "/faculty/meng-eee/ups_autonomy",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "loadKw",
      "batteryKwh"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "loadKw": {
        "type": "number",
        "description": "Load on the UPS (kW)",
        "minimum": 0.1
      },
      "batteryKwh": {
        "type": "number",
        "description": "Installed battery energy (kWh)",
        "minimum": 0.1
      },
      "depthOfDischarge": {
        "type": "number",
        "description": "Usable fraction of the battery",
        "minimum": 0.1,
        "maximum": 1,
        "default": 0.8
      },
      "inverterEfficiency": {
        "type": "number",
        "description": "Inverter efficiency",
        "minimum": 0.5,
        "maximum": 1,
        "default": 0.95
      },
      "requiredMinutes": {
        "type": "number",
        "description": "Ride-through required (min)",
        "minimum": 0,
        "default": 10
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "autonomyMinutes",
      "meetsRequirement",
      "requiredBatteryKwh"
    ],
    "properties": {
      "autonomyMinutes": {
        "type": "number",
        "description": "Autonomy at the load (min)"
      },
      "meetsRequirement": {
        "type": "boolean",
        "description": "Autonomy ≥ required ride-through"
      },
      "requiredBatteryKwh": {
        "type": "number",
        "description": "Battery needed for the required ride-through (kWh)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "loadKw": 500,
    "batteryKwh": 400
  }
}