Complex transactions made simple with transactive energy