At the recent European Utility event in Vienna I met up with Flexible Power's (www.powermatcher.org) Alexander Krstulovic where he explained to me the technology behind their open source, transactive energy software.
Their software is on Github at github.com/flexiblepower