This repository contains streamlit applications for various optimization problems.
The optimization problems are modeled and solved using either GAMSPy or GAMS control API. The model for each problem is available in their respective src directory.
The requirements.txt in the gams-live branch contains packages specific to applications that use GAMS control API and similarly the requirements.txt in the gamspy-live branch contains packages specific to applications using GAMSPy. This is important because streamlit requires the requirements.txt file to be present in the root of the project.
To install the packages run,
pip install -r requirements.txtYou can then run the streamlit application locally by,
streamlit run <app-name>.pyThe application should be available at http://localhost:8501
You can also run the standalone model from the src directory by,
python <src-name>.pyThe applications run on a Demo License which has a limit of 2000 variables and constraints.
Following is the list of examples that are available in the streamlit community.
| # | Problem | Streamlit App | Model | Backend |
|---|---|---|---|---|
| 1 | Cutting stock | https://gams-cutstock.streamlit.app/ | cutstock.py | GAMS control API |
| 2 | Traveling Salesman | https://gamspy-tsp.streamlit.app/ | tsp.py | GAMSPy |
| 3 | Transportation | https://gamspy-transport.streamlit.app/ | transport.py | GAMSPy |