Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Course 1: Introduction to Python

This repository contains the lecture slides and the source code used for the course.

Requirements

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.)

Installation Overview

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.

1. Python

2. VS Code

  • Download Visual Studio Code from the official VS Code website.
  • Install the Python extension for VS Code for enhanced support.

3. Pyomo-Compatible Solver

  • 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.

Repository Contents

  • 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/.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages