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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"objective": "<objective>"
},
"name": "optimize"
}
}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 | |||