Planning the European Electric System
- A Github account: If not the case, go https://github.com/ and sign up
- Enroll the classroom as a student: go enroll

- Click to accept the assignment
Start your Codespace (an online vscode running in github infrastructures)

Your Codespace is configuring... Please wait

Your Codespace is ready, you can open the python file example and run it

Help me, I really really want to run it locally
Are you sure you want to choose the red pill over the blue pill?
Yes, I'm sure
You have to install Python and ( Pycharm or VSCode )
Install a compatible Python version from 3.10 to 3.12, avoid 3.13
On windows
Either:
winget install Python.Python.3.12
or download and install https://www.python.org/ftp/python/3.12.7/python-3.12.7-amd64.exe
On a mac
If you have Homebrew installed:
brew install python@3.12
or download and install https://www.python.org/ftp/python/3.12.7/python-3.12.7-macos11.pkg
On linux
Hopefully if you use a linux machine, it means you're autonomous
Install the last version of Pycharm Community
On windows
Either:
winget install JetBrains.PyCharm.Community
or download and install https://download.jetbrains.com/python/pycharm-community-2024.2.3.exe
On a mac
If you have Homebrew installed:
brew install --cask pycharm-ce
or download and install https://download.jetbrains.com/python/pycharm-community-2024.2.3.dmg
On linux
download and install https://download.jetbrains.com/python/pycharm-community-2024.2.3.tar.gz
TO COME
Download and install https://code.visualstudio.com/download
In VSCode terminal, create a python environment and activate it :
python -m venv uc-env
. uc-env/Scripts/activate
install requirements
pip install -r requirements.txt
run the code, here for example the European Unit Commitment simulation
python .\my_little_europe_lt_uc.py
Details
- Connect to the university wifi or maybe eduroam wifi
- Go and register here with you student email: https://portal.gurobi.com/iam/register

- Register as a student

- Set a password!
- Request a 'WLS license' on this page: https://portal.gurobi.com/iam/licenses/request

- Go and download your license file. It should be a gurobi.lic file: https://license.gurobi.com/manager/licenses

- Put your gurobi license at the root of your git project using drag and drop

Adapt input/long_term_uc/solver_params.json indicating your solver ('gurobi') and license file (normally 'gurobi.lic') names.
