Skip to content

TomKae00/RES_ELEC

Repository files navigation

46755 Renewables in Electricity Markets, Spring 2026

This repository contains the code developed for the assignment in 46755 Renewables in Electricity Markets, Spring 2026.
The project is structured by task, where each script can be run independently and each task has its own plotting script.

Project structure

The repository is organized as follows:

Main task scripts

These scripts contain the core implementation for each assignment step.
Each script is self-contained and can be executed on its own.

  • step1.py
    Single-hour day-ahead market clearing without network constraints.

  • step2.py
    Multi-hour market clearing with storage.

  • step3.py
    Nodal and zonal market clearing with network constraints.

  • step5.py
    Balancing market analysis including outage and wind forecast errors.

  • step6.py
    Reserve market and day-ahead market clearing with reserve commitments.

Plot scripts

Each task has its own dedicated plotting script.
These scripts contain the figure functions used by the corresponding task script.

  • plots_step1.py
  • plots_step2.py
  • plots_step3.py
  • plots_step5.py
  • plots_step6.py

Shared helper functions

  • helpers.py
    Contains functions that are used repeatedly across tasks, such as:
    • loading and preparing data
    • building generator and demand inputs
    • loading wind availability
    • solving Pyomo models

Data

  • data/
    Contains the input data used by the assignment, such as generator data, demand data, line data, and wind profiles.

Plots

  • plots/
    Stores generated output files such as plots.

General code structure

The scripts follow a common structure:

  1. Input building
    Data is loaded and prepared for the selected task.

  2. Model building
    The optimization problem is formulated in Pyomo.

  3. Model solving
    The model is solved with the selected solver.

  4. Result extraction
    Dispatch, prices, welfare, profits, and other outputs are extracted.

  5. Plotting
    Figures are created using the corresponding plot script.

Each task script is intended to be executable on its own.
There is therefore no single central main.py file for the whole repository.

Requirements

The project dependencies are listed in:

  • requirements.txt

You can install them with:

pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages