A collection of classic optimization problems solved using Python.
This project demonstrates how to formulate and solve optimization problems using libraries like PuLP, SciPy, and matplotlib for visualizations.
- Solved using PuLP
- Supports constraints:
≤
,≥
,=
- Maximization & Minimization problems
- See the code
- Plotted feasible region and optimal solution
- Uses matplotlib
- See the code
- Formulated as LPP and solved using PuLP
- Handles supply and demand balance/unbalance cases
- See the code
- Solved using:
- Hungarian Method (via
scipy.optimize.linear_sum_assignment
) - LPP formulation (via PuLP)
- Hungarian Method (via
- See the code
Follow these steps to set up and run the project on your local machine.
- Clone the repo
git clone https://github.com/sushruta19/Optimization-Python.git
cd Optimization-Python
- Create Virtual Env
python -m venv venv
- Activate Virtual Env
venv\Scripts\activate # On Windows powershell
venv\Scripts\activate.bat # On Windows CMD
source venv/bin/activate # On linux bash
- Install requirements
pip install -r requirements.txt
- Run Jupyter Lab or Notebook
jupyter-lab # if you have installed this
jupyter-notebook