solve_linear_program
Solve linear programming problems by maximizing or minimizing a linear objective function under linear constraints using Google OR-Tools.
Instructions
Solve a linear programming problem using Google OR-Tools. Maximizes or minimizes a linear objective function subject to linear 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>",
"constraints": "<constraints>"
},
"name": "solve_linear_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objective | Yes | Linear objective function coefficients | |
| constraints | Yes | List of linear constraints | |
| variable_bounds | No | Bounds for each variable [lower, upper]. Defaults to [0, Infinity] |