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/binary/solve endpoint solves Binary Integer Programming (BIP) problems where every decision variable is constrained to be either 0 or 1. The solver uses Branch & Bound, relaxing the integrality constraints at each node to an LP and branching on fractional variables until a provably optimal 0/1 solution is found or the problem is declared infeasible.
Request
POST /api/v1/binary/solve
Coefficients of the objective function, one per binary variable. Must contain between 2 and 5 elements. Variables are named
x1, x2, …, x5 in order.Example: [3, 5] represents 3x1 + 5x2.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 aBinaryResponse object.
Outcome of the solve. One of:
"optimal"— a best 0/1 solution was found."infeasible"— no feasible 0/1 assignment satisfies all constraints."limit"— the node limit was reached before proving optimality.
Optimal objective value.
null when status is "infeasible".Map of variable names to their optimal binary values (
0 or 1), e.g. {"x1": 1, "x2": 0}. 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 3x1 + 5x2 subject to:- 2x1 + 4x2 ≤ 6
- x1 + x2 ≤ 2
The
nodes array forms a directed tree. Reconstruct the tree by linking each node to its parent via parent_id. The root node always has parent_id: null and depth: 0.Health Check
GET /api/v1/binary/health
Returns a liveness confirmation for the Binary Integer Programming service.