The OPF in the current MATPOWER does not include transformer taps or switched shunt settings as control variables. You can minimize power losses by setting all of the generator active power costs to an identical constant. If you want to combine that with some voltage deviation minimization, I think you should be able to do that using the (legacy) user-defined costs described in Section 6.3.3 and 7.1.3.
Ray On Jan 10, 2020, at 2:45 PM, Mohamed Shaheen <mohamed.shaheen9...@gmail.com<mailto:mohamed.shaheen9...@gmail.com>> wrote: The objective is to minimize power losses and voltage deviation. The control variables are 1- generators' voltages, 2- transformer tap settings, 3- injected Q by shunt capacitor. The paper in the attached link describes the problem. https://ieeexplore.ieee.org/document/8911388 Thanks [https://mailfoogae.appspot.com/t?sender=abW9oYW1lZC5zaGFoZWVuOTMxNkBnbWFpbC5jb20%3D&type=zerocontent&guid=2376ddf2-90ff-4153-ba1c-21788c629a5b]ᐧ On Fri, 10 Jan 2020 at 22:29, Fahmid Mahmud - 1402042 <mahmudfah...@gmail.com<mailto:mahmudfah...@gmail.com>> wrote: Hello M. Shaheen, Please be more descriptive about your inquiry. Thank you. On Sat, Jan 11, 2020 at 2:26 AM Mohamed Shaheen <mohamed.shaheen9...@gmail.com<mailto:mohamed.shaheen9...@gmail.com>> wrote: Dear all, Can anyone help me solve optimal reactive power dispatch using matpower? Thanks, M. Shaheen MSc. student at Ain Shams University. [https://mailfoogae.appspot.com/t?sender=abW9oYW1lZC5zaGFoZWVuOTMxNkBnbWFpbC5jb20%3D&type=zerocontent&guid=b9991832-6c3f-48a1-8cd4-489d488b666c]ᐧ -- Sincerely yours, Fahmid Mahmud Department of Electrical & Electronic Engineering (EEE) Chittagong University of Engineering & Technology (CUET) Chittagong-4349, Bangladesh. Contact: +880 1768221595 Email: u1402...@student.cuet.ac.bd<mailto:u1402...@student.cuet.ac.bd> or mahmudfah...@gmail.com<mailto:mahmudfah...@gmail.com>