The variables Pg and Qg corresponds to the actual active and reactive power delivered to the network referred at the system base.