> ## Documentation Index
> Fetch the complete documentation index at: https://eddy-ac74d702.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Transmission expansion screening and DC TNEP: which candidate lines to build, at what cost, the next-best plans, the screens and the checks of the plan (`ss.power.expansion/1`)

> TP13 on the network's candidate lines (TP2's `candidates`; all of them, or `settings.candidates`): the base state (the existing network's least load shed, then with operation its least operating cost: TP10's DC OPF where nothing is shed) and its constraints (flows at their rating with their duals; with `contingencies`, post-contingency flows at or over the post-contingency rating, by TP10's LODF and injection-shift columns); the LODF screen (each candidate alone at the base dispatch: the constraints it relieves and worsens, the overload it removes, cost per MW); the greedy screen (one candidate at a time, the most shed removed per unit cost or the largest net saving); the DC TNEP as a MILP on TP9's branch-and-bound (the disjunctive DC model with a stated, valid big-M from the shortest bounded-angle path; PowerModels' TNEP objective, the build cost, or `build_and_operation` {hours}); `alternatives` next-best plans by no-good cuts; the SOC screen with operation (TP11's relaxation bounds the AC saving a candidate can bring; one that cannot pay is marked); and the checks of the plan (TP10's DC OPF and DC N-1 of the network with the plan built, and with `checks.ac` TP11's AC OPF, HVDC links through TP11.b), with which builds relieve which constraints. The plan built into the network is stored (`planned_network_key`): the network the plan's own studies (`power_contingency`, `power_opf_ac`) take. A plan that cannot serve the load is `infeasible` in the result (status 200), never guessed; a stopped search is `node_limit` with its incumbent. Settings (TP13's `Study`, every member optional): `model` (network: b = 1/(x·τ) | pglib: PowerModels' DCPPowerModel), `objective` ({kind: build_cost} | {kind: build_and_operation, hours}), `candidates` (ids; empty: all), `angle_limits` (true), `screens` {lodf: true, greedy: true, soc: false}, `alternatives` (0), `checks` {dc: true, ac: false}, `binding_tol_pu` (1e-6), `list_limit` (500), `optim` (TP9's solve options, node limit), `ac` (TP11's settings). Large studies are jobs: buses × 50 × (1 + contingencies / 100) × (1 + candidates) × (1 + alternatives), × 10 with operation (CSIRO's SNEM with nine candidates is 2e6 at build cost, a few seconds). Refused: `POWER_REQUEST` (400: the body, a member the study does not take, a document given twice or not at all), `POWER_SETTINGS` (400: a setting that does not read, with the field), `POWER_DOCUMENT_INVALID` (400: the network), `POWER_NETWORK_NOT_FOUND` / `POWER_PLANNING_NOT_FOUND` (404: a key that names no such document), `POWER_PROJECT_KIND` (422), `POWER_BUSY` (429: the heavy lane is full; retry after `Retry-After`, or send `async: true`), `POWER_CONTINGENCIES_INVALID` (400 / 422), `POWER_EXPANSION_INVALID` (422: no candidates, an unknown candidate, a setting the study refuses, a list whose `monitor.pre` is not the normal duty), `POWER_EXPANSION_CANDIDATE` (422: a candidate the study cannot model, named: no cost or a negative one, no susceptance, ends on an island without a source, ends the existing network does not join, no bounded path between its ends), `POWER_OPF_*` (422: TP10's and TP11's own, from the checks). A screening study on the engine's DC model, reviewed by a person; never a RIT-T assessment, a TNSP or AEMO submission.



## OpenAPI

````yaml openapi.json POST /v1/power.expansion
openapi: 3.1.0
info:
  description: >-
    Deterministic, content-addressed geometry + structural-FEA engine. Every
    result carries provenance (model hash, pinned solver build, params, runtime
    profile) and is reproducible byte-for-byte from its report. Identical inputs
    return the same result_key with the second call served from cache.


    Authentication: when the deployment sets SS_REQUIRE_AUTH=1, pass an API key
    in the `x-api-key` header (create keys via the admin endpoints or the
    /console app). Admin endpoints require `x-admin-token` when SS_ADMIN_TOKEN
    is set.


    Rate limits: a key may carry a request-rate limit (`limits` on its record:
    requests a minute and a burst, set by an admin at mint or through `POST
    /admin/keys/{key_hash}/limits`), and a deployment may set one for every key
    without its own (SS_KEY_RATE_DEFAULT; unset = unlimited). Past it, any `/v1`
    or `/admin` call by that key is 429 `RATE_LIMITED` with `retry-after`
    (seconds) and `x-ratelimit-limit` / `x-ratelimit-remaining` /
    `x-ratelimit-reset`; an allowed call by a limited key carries the
    `x-ratelimit-*` headers too. The limit holds per gateway replica. Other 429s
    (RESOURCE_LIMIT, SESSION_LIMIT, size caps) are not transient and carry no
    `retry-after`; the SDKs retry a 429 only when it does.


    Errors are always typed: `{"error": {"code": "INVALID_GEOMETRY" |
    "MESH_FAILED" | "SOLVE_DIVERGED" | "RESOURCE_LIMIT" | "UNKNOWN_SOLVER" |
    "UNAUTHORIZED" | "NOT_FOUND" | ..., "message": "..."}}`.
  title: Eddy API
  version: 0.1.0
servers:
  - description: the hosted engine (Sydney)
    url: https://api.eddy.engineer
  - description: a local engine (cargo run -p ss-api)
    url: http://127.0.0.1:8080
security: []
tags:
  - description: 'Eddy IAM: API keys and usage metering'
    name: admin
  - description: Health and documentation
    name: meta
  - description: >-
      Eddy PLM (L track): Teamcenter-class PLM - item masters and revisions,
      EBOMs, ECR/ECO change control with hash-chained signoffs, effectivity +
      configurations, the vault, AP242 structure interchange, the digital-thread
      certificate
    name: plm
  - description: >-
      Eddy Parts, the 3D CAD application on the native kernel: recipes, edits,
      sketches, features, sections, drawings, export.
    name: cad
  - description: 'Eddy Assemblies: assemblies and mates.'
    name: asm
  - description: 'The engine: geometry -> mesh -> FEA -> result'
    name: solve
  - description: >-
      Eddy BIM, on the BIMCraft engine (BC track): projects as content-addressed
      documents with their history, every edit a command run server-side, views,
      schedules and sheets drawn by the engine, IFC and DXF in and out, .rvt in
      behind the rvt feature, measures for the verification matrix.
    name: bim
  - description: 'Eddy Verify and Eddy B3: reports, verification, runs, blobs'
    name: provenance
  - description: >-
      Eddy Bridge (IG20): fixed kinds of job run on the customer's own vendor
      seat under the customer's licence, results back as labelled external
      results
    name: bridge
  - description: CAM.
    name: cam
  - description: Eddy Flow, the CFD application (/cfd).
    name: cfd
  - description: Circuit simulation (MNA).
    name: circuit
  - description: >-
      Eddy Surrogates: corpora, datasets, sweeps and training runs over solver
      traces.
    name: training
  - description: >-
      Eddy ProcessSim (/multisim, A track): multi-method simulation - discrete
      events, agents and stocks-and-flows on one calendar - the AnyLogic-class
      engine.
    name: multisim
  - description: >-
      Eddy Requirements (Q track): DOORS-class requirements platform - modules,
      typed traceability links, baselines, the live verification matrix, the
      authoring recorder, ReqIF interchange
    name: req
  - description: 'Eddy Redline: markup and review.'
    name: review
  - description: 'Eddy Datasets: the data plane.'
    name: data
  - description: >-
      The generative design loop's perception (J12): the design packet — every
      picture an agent needs to see a recipe or assembly, content-addressed.
    name: design
  - description: >-
      Eddy Manufacturability (MF track): a part, an assembly or an imported STEP
      body checked against a process and the shop that will make it — findings
      on the faces and parts they are about, every limit cited with its
      confidence, the rule catalogue and the seeded shop profiles.
    name: dfm
  - description: >-
      Eddy Earthing (EG track): soil surveys and layered soil fitting, the IEEE
      80 hand method, our own boundary-element solver in uniform and layered
      soil, safety (touch and step) against cited criteria, the fault current
      split, risk-based criteria, transferred potentials and hazard zones, large
      farm grids, field test plans and calibration, grid generation, reports and
      sheets - refereed by SimPEG, pyGIMLi, groundinsight and FEA; paid values
      only from adopted value tables
    name: earthing
  - description: 'Eddy Circuits: schematics, boards, the E-track projects.'
    name: eda
  - description: Eddy Fields, the electromagnetics application (/em).
    name: em
  - description: 'Eddy QuickFlow: instant previews.'
    name: preview
  - description: 'Eddy Structures, the FEA application (/fea): studies, meshing, results.'
    name: fea
  - description: >-
      Eddy Kernel, the native B-rep kernel's services: healing, clearance,
      signed distance, STEP import. The kernel's booleans, sketches, features
      and meshers are reached through the cad tag; its ledger is the K track
      (/docs/tracks/k-track), its page /docs/solvers/ss-geometry.
    name: geometry
  - description: >-
      Eddy Generation Plants (GP track): solar, wind and battery plants on
      terrain - the site's buildable area, weather documents (ERA5, NASA POWER,
      EPW, customer files, our TMY), PV yield with rows, trackers and bifacial,
      row packing with piles and blocks edited by commands, wind yield and
      wakes, noise, shadow flicker, visual impact, micro-siting, BESS sizing,
      duty and layout, the MV collector as a power network, access roads and
      civil quantities, P50 / P90 and the yield report - refereed against pvlib,
      PySAM, solarfactors, PyWake, FLORIS and windpowerlib; paid values only
      from adopted value tables; design and screening, never bankable
    name: gp
  - description: >-
      Eddy Product Graph, on ParamDB (PX track): materials and suppliers as
      documents; one dependency graph per product across every document kind —
      BOM lines and items, materials, supplier offers, studies in any solver
      domain, requirement checks — with impact before work, propagation that
      evaluates exactly the frontier, and the derivative layer (rank, tolerance)
      composed over the graph.
    name: graph
  - description: >-
      Eddy Optics (/optics, OP track): lens files, the glass catalogs, the
      vocabulary.
    name: optics
  - description: >-
      The physical-AI interchange (IX track): UsdPhysics / MJCF / URDF in, the
      USD sublayer and MJCF out, calibration of the training engines' parameters
      from the truth, the audit of their rollouts, the foreign-audit corpus
      family.
    name: interop
  - description: >-
      Eddy Knowledge: the curated engineering reference library — standards
      notes, design guides, material data and house rules that staff maintain —
      searched lexically by models and people; live bases only.
    name: knowledge
  - description: >-
      Eddy Math (X track): the MATLAB-style numeric workbench - a stated
      MATLAB-language subset evaluated as a pure function over content-addressed
      workspaces, Octave-refereed
    name: lab
  - description: >-
      Eddy AI Gateway: the Anthropic Messages shape forwarded to the
      deployment's TrueFoundry gateway (Claude on Google Cloud), the caller
      tagged, the model allowlisted per role, the tokens metered.
    name: llm
  - description: >-
      Collaboration (CO16–CO18): the project event stream, presence (who is here
      and which view — nothing finer), comment threads with anchors and
      mentions, and notifications.
    name: collab
  - description: >-
      Eddy IAM - organisations and teams (CO3): the tenancy unit projects, live
      sessions, comments, notifications and activity are scoped by. Invites by
      email bind on first sign-in.
    name: orgs
  - description: >-
      Eddy Motion (MO track): the study document on an assembly's mates, the
      multibody solve, result series, traces, interference over time, loads for
      an FEA study, mate references by stable face name.
    name: motion
  - description: >-
      Eddy ParamDB, the parametric database: the store's management surface
      (status, refs, log, objects, GC, flush, init) behind the console's ParamDB
      service.
    name: pdb
  - description: >-
      Eddy Power Systems (PW track): the network document and device libraries,
      load flow, short circuit, protection and time-current curves,
      coordination, arc flash, sizing, motor starting and harmonics - our own
      solvers, refereed by pandapower and OpenDSS; paid values only from adopted
      value tables
    name: power
  - description: Saved app documents (the console's project library)
    name: projects
  - description: >-
      Eddy Live - live co-editing (CO13): one chain per project on ParamDB,
      every edit a micro-commit with a CAS; the loser of a race gets a typed
      conflict and catches up. Zero per-app code: any registered family's
      vocabulary, or JSON Patch.
    name: live
  - description: >-
      Variants (CO13b): explore your own design or simulation options on a
      private branch forked at zero copy, share it, compare it as a node diff
      with results, and merge it back as one whole state (a two-parent commit)
      when you want.
    name: variants
  - description: Result post-processing.
    name: results
  - description: >-
      Eddy Maps, the spatial engine (/spatial, SP track): frames, terrain,
      volumes and paths — and the S-track spatial aggregates over result fields.
    name: spatial
  - description: >-
      Eddy Build Guides (AQ track, /instructions): the assembly sequence
      document (explode steps, the build as its reverse), the planner with its
      path / stability / tool-access checks and the fast check of a given order,
      the animation with its auto camera, the render (AV1 / GIF / APNG / glTF /
      USD) and the step sheets, public share links, service procedures, DFA
      scoring and the precedence graph.
    name: sequence
  - description: 'Eddy Sim2Real: rigid-body simulation and rollouts.'
    name: sim
  - description: 'Eddy 1D: system simulation, Modelica-style networks and signal flow.'
    name: system
paths:
  /v1/power.expansion:
    post:
      tags:
        - power
      summary: >-
        Transmission expansion screening and DC TNEP: which candidate lines to
        build, at what cost, the next-best plans, the screens and the checks of
        the plan (`ss.power.expansion/1`)
      description: >-
        TP13 on the network's candidate lines (TP2's `candidates`; all of them,
        or `settings.candidates`): the base state (the existing network's least
        load shed, then with operation its least operating cost: TP10's DC OPF
        where nothing is shed) and its constraints (flows at their rating with
        their duals; with `contingencies`, post-contingency flows at or over the
        post-contingency rating, by TP10's LODF and injection-shift columns);
        the LODF screen (each candidate alone at the base dispatch: the
        constraints it relieves and worsens, the overload it removes, cost per
        MW); the greedy screen (one candidate at a time, the most shed removed
        per unit cost or the largest net saving); the DC TNEP as a MILP on TP9's
        branch-and-bound (the disjunctive DC model with a stated, valid big-M
        from the shortest bounded-angle path; PowerModels' TNEP objective, the
        build cost, or `build_and_operation` {hours}); `alternatives` next-best
        plans by no-good cuts; the SOC screen with operation (TP11's relaxation
        bounds the AC saving a candidate can bring; one that cannot pay is
        marked); and the checks of the plan (TP10's DC OPF and DC N-1 of the
        network with the plan built, and with `checks.ac` TP11's AC OPF, HVDC
        links through TP11.b), with which builds relieve which constraints. The
        plan built into the network is stored (`planned_network_key`): the
        network the plan's own studies (`power_contingency`, `power_opf_ac`)
        take. A plan that cannot serve the load is `infeasible` in the result
        (status 200), never guessed; a stopped search is `node_limit` with its
        incumbent. Settings (TP13's `Study`, every member optional): `model`
        (network: b = 1/(x·τ) | pglib: PowerModels' DCPPowerModel), `objective`
        ({kind: build_cost} | {kind: build_and_operation, hours}), `candidates`
        (ids; empty: all), `angle_limits` (true), `screens` {lodf: true, greedy:
        true, soc: false}, `alternatives` (0), `checks` {dc: true, ac: false},
        `binding_tol_pu` (1e-6), `list_limit` (500), `optim` (TP9's solve
        options, node limit), `ac` (TP11's settings). Large studies are jobs:
        buses × 50 × (1 + contingencies / 100) × (1 + candidates) × (1 +
        alternatives), × 10 with operation (CSIRO's SNEM with nine candidates is
        2e6 at build cost, a few seconds). Refused: `POWER_REQUEST` (400: the
        body, a member the study does not take, a document given twice or not at
        all), `POWER_SETTINGS` (400: a setting that does not read, with the
        field), `POWER_DOCUMENT_INVALID` (400: the network),
        `POWER_NETWORK_NOT_FOUND` / `POWER_PLANNING_NOT_FOUND` (404: a key that
        names no such document), `POWER_PROJECT_KIND` (422), `POWER_BUSY` (429:
        the heavy lane is full; retry after `Retry-After`, or send `async:
        true`), `POWER_CONTINGENCIES_INVALID` (400 / 422),
        `POWER_EXPANSION_INVALID` (422: no candidates, an unknown candidate, a
        setting the study refuses, a list whose `monitor.pre` is not the normal
        duty), `POWER_EXPANSION_CANDIDATE` (422: a candidate the study cannot
        model, named: no cost or a negative one, no susceptance, ends on an
        island without a source, ends the existing network does not join, no
        bounded path between its ends), `POWER_OPF_*` (422: TP10's and TP11's
        own, from the checks). A screening study on the engine's DC model,
        reviewed by a person; never a RIT-T assessment, a TNSP or AEMO
        submission.
      operationId: powerExpansion
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                async:
                  description: >-
                    true: run as a job and answer 202 with `job_id`, `poll` and
                    `events`; the finished job's `result` is this route's body
                    without the inline result. false: always inline. Left out:
                    inline up to an estimated work of 5e6
                    (`SS_POWER_PLANNING_SYNC_WORK`), a job above. Above 2e5
                    (`SS_POWER_PLANNING_LIGHT_WORK`) the study takes a slot of
                    PW12's heavy lane
                  type: boolean
                case:
                  description: >-
                    A PW2 study case by id (its states and settings apply); left
                    out, the document as it stands
                  type: string
                contingencies:
                  description: >-
                    A contingency document (`ss.power.contingencies/1`, TP2):
                    its outages' post-contingency flows count as constraints
                    (screened, and checked by DC N-1 after the plan; not held in
                    the MILP), at the `monitor.post` duty (long-term emergency
                    by default; `monitor.pre` must be the normal duty)
                  type: object
                contingencies_key:
                  description: >-
                    A stored contingency document's key
                    (`power_contingencies_validate`,
                    `power_contingencies_expand` and `power_common_mode` answer
                    one)
                  type: string
                network:
                  description: >-
                    The network document (`ss.power.network/1`, PW2 with TP2's
                    planning members) with its `candidates` (TP2: id, from, to,
                    a branch model, `limits` by duty, `cost`, `currency`;
                    MATPOWER's `ne_branch` rows through `power_import` format
                    `matpower_planning`), inline. Give exactly one of `network`,
                    `network_key`, `project`. Every document is run in its
                    canonical form
                  type: object
                network_key:
                  description: >-
                    The key (`b3:<hex>`) of a stored network (what
                    `power_network`, `power_import`, `power_raw`, `power_cgmes`,
                    an OPF's `dispatched_network_key` and an expansion's
                    `planned_network_key` answer)
                  type: string
                project:
                  description: >-
                    The id of a project whose document is a network (`app:
                    "power"`): its live head where it has one, else its last
                    save
                  type: string
                settings:
                  description: >-
                    TP13's study: `model`, `objective`, `candidates`,
                    `angle_limits`, `screens`, `alternatives`, `checks`,
                    `binding_tol_pu`, `list_limit`, `optim`, `ac`
                  type: object
                variant:
                  description: A variant of `project`, by slug
                  type: string
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: >-
            `study`, `schema`, `result_key` (BLAKE3 of the result's canonical
            bytes, the crate's own `content_hash`; `blob_uri` reads it,
            `report_uri` is its certificate, which `verify_result` runs again),
            `request_key`, `documents` (each document the study read, by content
            key), `network` {key, name, counts}, `case`, `summary` {status,
            build, build_cost, objective, alternatives, base {status, shed_w,
            constraints_total}, screens {lodf, greedy, soc}, relieved, checks
            {dc, ac}, findings}, `elapsed_ms`, `work`, `result_inline`, `result`
            (the whole `ss.power.expansion/1` document, up to 16 MiB:
            `candidates`, `base`, `screens`, `tnep` {status, build, build_cost,
            objective, nodes, best_bound, gap_rel, flows, alternatives},
            `relieved`, `checks`, `findings`), and `planned_network_key` (the
            network with the plan built, where it builds any)
        '202':
          $ref: '#/components/responses/JobAccepted'
        '400':
          $ref: '#/components/responses/TypedError'
        '404':
          $ref: '#/components/responses/TypedError'
        '422':
          $ref: '#/components/responses/TypedError'
        '429':
          $ref: '#/components/responses/TypedError'
      security:
        - apiKey: []
        - {}
components:
  responses:
    JobAccepted:
      content:
        application/json:
          schema:
            properties:
              events:
                example: /v1/jobs/job-000001-…/events
                type: string
              job_id:
                type: string
              phase:
                example: queued
                type: string
              poll:
                example: /v1/jobs/job-000001-…
                type: string
            type: object
      description: >-
        Accepted as an async job (estimated cost above the sync threshold, or
        mode=async). Follow `poll` (JSON) or `events` (SSE).
    TypedError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
      description: Typed error — never a bare 500
  schemas:
    ErrorEnvelope:
      properties:
        error:
          properties:
            code:
              enum:
                - INVALID_GEOMETRY
                - MESH_FAILED
                - SOLVE_DIVERGED
                - RESOURCE_LIMIT
                - UNKNOWN_SOLVER
                - UNAUTHORIZED
                - FORBIDDEN
                - NOT_FOUND
                - STORE_ERROR
                - INTERNAL
                - INVALID_KEY_NAME
                - RATE_LIMITED
                - LIVE_RATE
                - SESSION_LIMIT
                - SCOPE_DENIED
                - CREDITS_EXHAUSTED
                - INVALID_LIMITS
              type: string
            message:
              type: string
          type: object
      type: object
  securitySchemes:
    apiKey:
      description: Required when the deployment sets SS_REQUIRE_AUTH=1
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.