---
title: "Analyze Sensitivity"
method: POST
path: "/api/analyze-sensitivity"
---

# Analyze Sensitivity

`POST /api/analyze-sensitivity`

## Request

- Base URL: `https://biotechdsp-579272663320.europe-west1.run.app`
- URL: `https://biotechdsp-579272663320.europe-west1.run.app/api/analyze-sensitivity`
- Auth: HTTP bearer

Tornado analysis of the flowsheet as it stands. Nothing is searched and nothing is
written back: each bar reports how far the objective moves when one input is swept
while everything else stays at its current value.

## Request body

- SensitivityBody: Same feed and steps the simulation posted, replayed for a tornado analysis. `modes` selects which chart(s) to compute: operating what each dial an operator could turn is worth (the sensitivity screen across engineering bounds), uncertainty which assumptions dominate the error bar (model calibrations, economics and feed titre swept +/- `variation`).
  - `annual_operating_hours` integer
  - `cooling_water_price_usd_per_m3` number
  - `electricity_price_usd_per_kWh` number
  - `facility_type` string, nullable
  - `feeds` object
  - `labor_profile` string
  - `modes` string[]
  - `objective` string
  - `product_identity_requested_targets` string[]
  - `product_identity_warnings` string[]
  - `product_selling_price_source` 'default' | 'user_supplied'
  - `product_selling_price_usd_per_kg` number
  - `recycles` RecycleSpec[]
    - `fraction` number, required
    - `from_step` integer, required
    - `outlet` 'light' | 'heavy'
    - `to_step` integer, required
  - `samples_per_variable` integer
  - `skip_steps` integer[]
  - `steam_price_usd_per_GJ` number
  - `steps` object[], required
  - `stream` object, required
  - `stream_closure_warnings` string[]
  - `target_products` string[], required
  - `target_provenance` object, nullable
  - `terminal_streams` TerminalStream[], nullable
    - `fraction` number, required
    - `output_index` integer, required
    - `port_id` string, required
    - `sink` 'product' | 'waste' | 'vent', required
    - `step_index` integer, required
    - `target_products` string[]
    - `terminal_id` string, required
  - `variation` number
  - `wastewater_scope` 'included' | 'excluded_osbl'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/untangle/apis/untangle-bio-engine-api.md) · [All operations](https://skmtc.dev/untangle/apis/untangle-bio-engine-api/llms.txt) · [OpenAPI document](https://skmtc.dev/untangle/apis/untangle-bio-engine-api/revisions/161714bf261c?raw)
