This repository contains the lecture slides and the source code used for the course.
To follow along with the course, you will need:
- Python (preferably version 3.10 or higher)
- Visual Studio Code (VS Code) as the code editor
- A Pyomo-compatible solver (for example: CBC, GLPK, CPLEX, Gurobi, etc.)
Below is a brief overview of how to install each requirement. For detailed, platform-specific instructions, please refer to the official documentation for each tool.
- Download and install Python from the official Python website.
- Make sure Python is added to your system PATH.
- Download Visual Studio Code from the official VS Code website.
- Install the Python extension for VS Code for enhanced support.
- CBC: Available via coin-or.org or installable with
conda install -c conda-forge coincbc. - GLPK: Download from gnu.org/software/glpk or install with
conda install -c conda-forge glpk. - CPLEX/Gurobi: Commercial solvers, free academic licenses available. Refer to IBM CPLEX or Gurobi.
- Make sure the solver is accessible from your system's command line so Pyomo can use it.
- Slides: The lecture slides are located in
slides/. - Source Code: The Python scripts and code examples are located in
src/. - Data: The data used in the examples are located in
data/.