Skip to content

pamun1/gerad-python-course-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Course 2: Object-Oriented Programming in Python

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

Requirements

To get the most out of this course, you’ll need the following:

Essential

  • Python (version 3.10 or higher recommended)
  • Visual Studio Code (VS Code) as your code editor

Recommended

  • VS Code Python extension for syntax highlighting, code navigation, and debugging

Optional (required only if you want to run the Pyomo optimization examples)

  • Pyomo-compatible solver such as CBC, GLPK, CPLEX, or Gurobi

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.
  • To install the Python extension (recommended):
    • Open VS Code.
    • Go to the Extensions view by clicking the square icon in the sidebar or pressing Ctrl+Shift+X.
    • Search for "Python" and install the extension published by Microsoft.

3. Pyomo-Compatible Solver (Optional)

  • 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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages