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.
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. |