SimplexSolver
Python script that solves standard linear programs with the Simplex algorithm and outputs step-by-step LaTeX instructions.
Install / Use
/learn @MichaelStott/SimplexSolverREADME
Simplex Solver
Example code for solving linear equations using simplex.
- Provides step-by-step instrucitons for solving LPs using simplex algorithm (tableau method).
- Outputs raw LaTeX file.
LaTeX files can be compiled here.
Note: Currently, only LPs in standard form are supported.
Examples
1. Standard Form Maximization LP
Consider the following objective function and constraints:
<p align="center"> <img src="https://raw.githubusercontent.com/MichaelStott/SimplexSolver/master/img/example1a.png"> </p> <p align="center"> <img src="https://raw.githubusercontent.com/MichaelStott/SimplexSolver/master/img/example1b.png"> </p> 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
2. Standard Form Minimization LP
Consider the following objective function and constraints:
<p align="center"> <img src="https://raw.githubusercontent.com/MichaelStott/SimplexSolver/master/img/example2a.png"> </p> <p align="center"> <img src="https://raw.githubusercontent.com/MichaelStott/SimplexSolver/master/img/example2b.png"> </p> 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
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
API
A learning and reflection platform designed to cultivate clarity, resilience, and antifragile thinking in an uncertain world.
openclaw-plugin-loom
Loom Learning Graph Skill This skill guides agents on how to use the Loom plugin to build and expand a learning graph over time. Purpose - Help users navigate learning paths (e.g., Nix, German)
