Minimizing losses in OPF

I have been working on a distribution system where I was minimizing the fuel cost in the objective function using _PMD.solve_mc_opf. However, I currently switched my data to solar generated data using PV panels. This data does not have fuel costs and I want to minimize losses in my objective function. Is there a Power Model Distribution or Power Model function that I can use to minimize losses in the system instead of fuel cost?

Good question. if you set all of the generator fuel costs to a linear function with the same value (e.g. a cost coefficient 1.0) then the optimization will find the minimum losses. If you have “free” power in the system (e.g. via PV units) then you may want to put those costs to 0.0 depending on what you would like to solve.

This is why there is not special functions for loss minimization in PM and PMD, it can be implemented as a special kind of fuel-based cost function which is the default.

1 Like

Hi,
for a matpower data file, i want to configure minimization of losses as my objective function. Could you please explain what configuration works?
Thanks

Hi @pc350128, welcome to the forum.

Did you try what Carleton suggested and set all of your fuel costs to 1.0? It’d be something like:

mpc.gencost = [
    2  0  0  2  1.0  0.0
];

I think it works. Thanks.

1 Like