Run an OPF with the active power constrained to their set points (PMIN=PMAX=desired PG) on all but the slack bus. This will minimize the slack bus generator cost, which minimizes the slack bus generation, i.e. minimizes system losses, all by optimizing the reactive power generation and voltage profile.
Ray > On Nov 1, 2021, at 8:12 AM, 2254878263 <jh...@qq.com> wrote: > > Hi all > How to use Matpower to model reactive power planning? > Thank you very much. >