Computer science thesis for obtaining masters (COSS, ETH Zurich and II, TU Delft) on the topic of fair energy exchange markets