solve_integer_program
Solve integer programming and mixed-integer programming problems with linear objectives and constraints to find optimal solutions.
Instructions
Solve an integer programming (IP) or mixed-integer programming (MIP) problem using Google OR-Tools. Variables can be constrained to integer values.
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_integer_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] | |
| integer_variables | No | Indices of variables that must be integers (0-indexed). If omitted, all variables are integers. |