This Python project aims to solve linear programming problems using the simplex method. It handles various cases including:
- Arbitrary variables
- Constraints on arbitrary variables (<=, >=, =)
- Arbitrary constraints (<=, >=, =)
- Minimize / Maximize objective function
- Standard simplex problem cases (like Danzig)
- Two-phase simplex problem cases (with negative b coefficients)
- Bland's rule simplex problem cases (handling loops in Danzig's case)
To run this project, please follow the steps below:
- Clone the repository:
git clone https://github.com/shizi1011/Simplex_Linear_Programming.git
cd Simplex_Linear_Programming
- Create and activate a virtual environment (optional but recommended):
python3 -m venv env
source env/bin/activate
- Install the dependencies from the
requirements.txt
file:
pip install -r requirements.txt
To start the application, run the following command:
python main.py