What-If Analysis
What-if parametric sweep
Vary one variable parameter across a range and see how outcomes change. All steps run in parallel via Mojo worker pool. Returns a sweep with mean, percentiles, and probability of loss at each step. Automatically computes sensitivity direction and elasticity.
post/v1/simulate/what-if
Request
- Base URL: https://api.algenta.ai
- URL: https://api.algenta.ai/v1/simulate/what-if
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Request body
Example request
{
"request": {
"mode": "auto",
"runs": 10000,
"scenario": {
"name": "Product launch decision",
"objective": "maximize_net_value",
"variables": {
"cost": {
"high": 90000,
"low": 40000
},
"revenue": {
"high": 200000,
"low": 80000
}
}
},
"simulation_model": "monte_carlo"
}
}Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.