Python script that solves standard linear programs with the Simplex algorithm and outputs step-by-step LaTeX instructions.
Example code for solving linear equations using simplex.
LaTeX files can be compiled here.
Note: Currently, only LPs in standard form are supported.
Consider the following objective function and constraints:
This problem can be solved by running the script with the following parameters:
$ python simplex.py -A "[[2,1],[1,2]]" -b "[4,3]" -c "[1,1]" -p max
Consider the following objective function and constraints:
This problem can be solved by running the script with the following parameters:
$ python simplex.py -A "[[2,1],[1,1]]" -b "[6,4]" -c "[3,2]" -p min