Explore our modeling examples for the Gurobi Python API
A university building is going to hold classes for a week, which requires electricity to run. and the demand for electricity changes due to the course load. There is a solar panel to provide energy and two batteries that can store it. Additionally, electricity can be purchased from the grid. The goal of the problem is to find the battery charge and discharge schedule that will:

This notebook will expand on the above problem (completed in Opti 101) by implementing these awesome capabilities:
We also put completed versions of the modeling2 notebook and the exercises in the repo. If you want to work through the notebooks without everything filled in, make sure not to open the completed versions.
Google Colab Link - Modeling Session without answers
Google Colab Link - Exercise without answers
Google Colab Link - Modeling Session with answers
Google Colab Link - Exercise with answers
For details on licensing or on running the notebooks, see the overview on Modeling Examples