Solve Integer Program Tool
solve_integer_program_toolSolve integer and mixed-integer optimization problems—such as facility location, project selection, and crew scheduling—by defining objectives, variables, and constraints for CPLEX-backed solving.
Instructions
Solve an integer or mixed-integer programming problem using PuLP.
This tool solves optimization problems where some or all variables must take integer values, which is useful for discrete decision problems.
Use cases:
Facility location: Decide where to build warehouses or service centers
Project selection: Choose which projects to fund (binary decisions)
Crew scheduling: Assign integer numbers of staff to shifts
Network design: Design networks with discrete components
Cutting stock: Minimize waste when cutting materials
Capital budgeting: Select investments when partial investments aren't allowed
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>",
"variables": "<variables>",
"constraints": "<constraints>"
},
"name": "solve_integer_program_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| solver | No | Solver to use ("CBC", "GLPK", "GUROBI", "CPLEX"); the requested solver must be available or the call fails - no silent fallback | CPLEX |
| objective | Yes | Objective function with 'sense' and 'coefficients' | |
| variables | Yes | Variable definitions with types "continuous", "integer", or "binary" | |
| constraints | Yes | List of linear constraints | |
| time_limit_seconds | No | Maximum time to spend solving (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||