optimize
Find the optimal value of an objective expression under a set of constraints, either maximizing or minimizing it.
Instructions
Solve with an optimization objective (maximize or minimize).
Finds the optimal value for the given objective function subject to all added constraints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maximize | No | If True, maximize the objective; if False, minimize. | |
| objective | Yes | The expression to optimize (e.g., 'int:x + int:y'). | |
| timeout_ms | No | Timeout in milliseconds for the optimizer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||