Here’s an example, where gencost is set to minimize losses, and the legacy user costs are set to a quadratic cost on all voltage deviations from 1, where w is a weight that controls the relative importance of the two objectives.
Ray define_constants; w = 10; mpopt = mpoption('verbose', 2); mpc = loadcase('case9'); % set uniform linear cost to minimize losses mpc.gencost(:, NCOST) = 2; mpc.gencost(:, COST) = 1; mpc.gencost(:, COST+1:end) = 0; nb = size(mpc.bus, 1); ng = size(mpc.gen, 1); mpc.N = sparse(1:nb, nb+1:2*nb, 1, nb, 2*nb+2*ng); mpc.fparm = ones(nb, 1) * [2 1 0 1]; mpc.Cw = w * ones(nb, 1); r = runopf(mpc, mpopt); On Jan 15, 2020, at 2:14 AM, AKHILESH IIT BHU <akhileshkb.rs.ee...@itbhu.ac.in<mailto:akhileshkb.rs.ee...@itbhu.ac.in>> wrote: Can I get some examples of references to solve this problem? I have used optimization techniques to solve loss minimization using as DG real power as injected negative load with variable location. Regards: Akhilesh Kumar Barnwal Research Scholar IIT-BHU, Varanasi Contact: +91-75001 86505 On Wed, Jan 15, 2020 at 5:11 AM Ray Daniel Zimmerman <r...@cornell.edu<mailto:r...@cornell.edu>> wrote: 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>