Decision

Side-by-side scenario comparison

Run and compare 2–10 named scenarios. Returns full results with deltas versus the winning scenario.

post/v1/compare

Request

  • Base URL: https://api.algenta.ai
  • URL: https://api.algenta.ai/v1/compare
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

runsinteger
seedinteger nullable

Example request

{
  "scenarios": [
    {
      "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

winnerstring required

Changes

No recorded changes to this operation across all 1 revision of this API.