Skip to main content
POST
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`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
async
boolean

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

case
string

A PW2 study case by id (its states and settings apply); left out, the document as it stands

contingencies
object

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)

contingencies_key
string

A stored contingency document's key (power_contingencies_validate, power_contingencies_expand and power_common_mode answer one)

network
object

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

network_key
string

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)

project
string

The id of a project whose document is a network (app: "power"): its live head where it has one, else its last save

settings
object

TP13's study: model, objective, candidates, angle_limits, screens, alternatives, checks, binding_tol_pu, list_limit, optim, ac

variant
string

A variant of project, by slug

Response

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)

The response is of type object.