simulate
Quantify decision risk with Monte Carlo simulation. Compare expected outcomes and receive probability-weighted recommendations including expected value, confidence, and loss probability.
Instructions
Run a Monte Carlo simulation and get a structured decision recommendation. Use for: quantifying risk in a decision, comparing expected outcomes, getting probability-weighted recommendations. Synchronous deterministic compute governed by the plan's per-minute rate limit and monthly quota (429 on excess); the run is recorded asynchronously and appears in list_runs. Returns the decision envelope: recommended_action, expected_value, probability_of_loss, confidence, percentiles, and run metadata (run_id, execution_ms, scenarios_run).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto = minimal setup; expert = full distribution control | auto |
| objective | No | Auto-mode objective. For expert mode, use objective_function. | maximize_net_value |
| variables | Yes | Input variables as triangular distributions (low, most-likely, high) | |
| n_simulations | No | Monte Carlo iteration count. Auto mode accepts 100–100,000; expert mode accepts 100–1,000,000. | |
| objective_function | No | Expert-mode expression, for example 'revenue - cost'. Required when mode='expert'. |