product_optimize
Finds optimal values for decision variables based on your stated objective, respecting ranges and constraints. Returns per-variable optima and improvement metrics.
Instructions
Estimate the best value for each decision variable given a plain-English objective, and return the per-variable optima. Every variable is sampled uniformly over its [min, max] range; an objective containing 'maximize' favors each variable's max, anything else favors the min, and the returned optimum blends that endpoint with the range midpoint. Use product_decision when you want a proceed/pause/reject recommendation instead of raw optima. Synchronous deterministic compute; nothing is persisted. Returns optimal_values, objective_value, improvement_vs_midpoint (percent), constraints_satisfied, and iterations_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | Simulation engine; auto (default) selects one, lhs is recommended for optimization. Options: lhs, monte_carlo, qmc_sobol. | |
| objective | Yes | What to optimize, e.g. 'maximize profit' or 'minimize cost'; the wording sets the search direction. | |
| variables | Yes | Variables as {name, min, max, unit?} objects with their allowed ranges. | |
| iterations | No | Search iterations, 100-100000; defaults to 1000. | |
| constraints | No | Business constraints the answer must respect. |