TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/FabianeloV/Metodo-simplex/llms.txt
Use this file to discover all available pages before exploring further.
/api/v1/integer/solve endpoint solves Pure Integer Programming (IP) problems where every decision variable must take a non-negative integer value. The solver uses Branch & Bound with LP relaxation at each node, branching by applying floor/ceil bounds to fractional variables until an integer-feasible optimal solution is confirmed or the problem is shown to be infeasible.
Request
POST /api/v1/integer/solve
Coefficients of the objective function, one per decision variable. Must contain between 2 and 5 elements. Variables are named
x1, x2, …, x5 in order.Example: [5, 8] represents 5x1 + 8x2.Optimisation direction. Accepted values:
"max" or "min".At least one linear constraint. Every constraint must have the same number of coefficients as
objective.Response
A successful call returns anIntegerResponse object.
Outcome of the solve. One of:
"optimal"— a best integer solution was found."infeasible"— no feasible integer assignment satisfies all constraints."limit"— the node limit was reached before proving optimality.
Optimal objective value at the best integer solution found.
null when status is "infeasible".Map of variable names to their optimal integer values, e.g.
{"x1": 3, "x2": 2}. null when status is "infeasible".Total number of Branch & Bound nodes evaluated during the search.
Complete Branch & Bound exploration tree, one entry per node.
Human-readable status message describing the result.
Example
Maximize 5x1 + 8x2 subject to:- x1 + x2 ≤ 6
- 5x1 + 9x2 ≤ 45
Unlike the Binary solver, Pure Integer Programming allows each variable to take any non-negative integer value. The solver applies tighter
lower_bounds and upper_bounds progressively as it branches deeper into the tree.Health Check
GET /api/v1/integer/health
Returns a liveness confirmation for the Pure Integer Programming service.