Mamey 📖 |
Fussita 📖 |
Alfredo Fung 📖 |
Daniel Borot 📖 |
This repository contains Python code implementations for solving optimization problems in Operations Research. The codes are divided into two parts:
- Python 3.11+
- Pandas
- Tabulate
- Numpy
- Poetry (Optional)
pip install poetrypoetry lockpoetry install- Add the venv/lock as the project's interpreter.
- Run the code.
- Open the
pyproject.tomlfile. - In the terminal, write
pip install <dependency name>for each dependency listed under the[tool.poetry.dependencies]tag in the file from the previous step. - Run the code.
- Adapt
restwith your matrix andf_owith your function ("min"or"max")
rest = [
[6, 2, 8, 5, 3, 0, 0],
[5, 3, 9, 4, 2, 0, 0],
[2, 3, 8, 4, 3, 0, 0],
[4, 2, 6, 6, 5, 0, 0],
[6, 1, 7, 6, 4, 0, 0],
[0, 0, 0, 0, 0, -100, -100],
[0, 0, 0, 0, 0, -100, -100],
]
f_o = "max" # min or max- Run the code.
- Run the code.
- The code will ask you for the number of variables, restrictions and matrix.
This repository is no longer maintained. However, if you want to contribute, you can fork the repository and make a pull request.