The get_losses() function uses the AC bus voltage solution to compute the losses for an AC case. To approximate losses from the solution of a lossless DC network model (which assumes all voltage magnitudes are 1.0 p.u.), I think you will need to estimate the current or voltage drop across the branch and use that to estimate the losses.
Ray On Aug 9, 2021, at 10:37 AM, Diego Feroldi <dfero...@gmail.com<mailto:dfero...@gmail.com>> wrote: Thank you Dr. Ray for your reply. Perhaps the get losses function can help with the calculation. Best regards, Diego [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Libre de virus. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <x-msg://1/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> El lun, 9 ago 2021 a las 11:18, Ray Daniel Zimmerman (<r...@cornell.edu<mailto:r...@cornell.edu>>) escribió: MOST uses a lossless DC network model for the optimization, but you could use the branch flows from the solution to compute an approximation of the losses in each branch. MATPOWER does not include the code to do this however, so you’d have to write your own function. Ray On Aug 3, 2021, at 11:50 AM, Diego Feroldi <dfero...@gmail.com<mailto:dfero...@gmail.com>> wrote: Hi all, I am trying to obtain the power losses in an economic dispatch problem over a planning horizon. I would like to know how to get the power losses from the MOST output data (mdo). Thanks in advance for any feedback, Best regards, Diego -- Diego Feroldi