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/simplex/solve endpoint accepts a linear objective function and a set of linear constraints, then applies the Simplex algorithm to find the optimal solution. Along with the final tableau the response includes a per-iteration snapshot of every pivot step, and — for 2-variable problems — a graphical payload ready for plotting.
Request
POST /api/v1/simplex/solve
Coefficients of the objective function, one per decision variable. Must contain between 2 and 5 elements. The number of elements determines the number of decision variables (
x1, x2, …, x5).Example: [5, 4, 3] represents 5x1 + 4x2 + 3x3.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 aSimplexResponse object.
Outcome of the solve. One of
"optimal", "unbounded", or "infeasible".The optimal value of the objective function.
null when status is not "optimal".Map of variable names to their optimal values, e.g.
{"x1": 3.0, "x2": 2.5, "x3": 0.0}. null when status is not "optimal".Total number of pivot iterations performed.
null when status is not "optimal".Column labels of the final simplex tableau (includes decision variables, slacks, and
"RHS"). null when status is not "optimal".Rows of the final simplex tableau.
null when status is not "optimal".Human-readable status message describing the result.
Graphical representation of the feasible region. Only populated when the problem has exactly 2 decision variables; otherwise
null.Ordered list of tableau snapshots, one per pivot iteration.
Example
Maximize 5x1 + 4x2 + 3x3 subject to:- 6x1 + 4x2 + 2x3 ≤ 240
- 3x1 + 2x2 + 5x3 ≤ 270
- 5x1 + 6x2 + 5x3 ≤ 420
When the problem has exactly 2 decision variables, the
graphical field in the response is populated with line data, feasible polygon vertices, and the optimal point — useful for rendering a 2-D plot on the client side.Health Check
GET /api/v1/simplex/health
Returns a simple liveness confirmation for the Simplex service.