Real & reactive power allocation in a competitive market