Real and reactive power allocation in bilateral transaction markets