From: Tim Chen <[email protected]> Reply-To: MATPOWER discussion forum <[email protected]> Date: Thu, 20 Mar 2014 22:03:47 +0100 To: <[email protected]> Subject: Significant digits in runpf
>Hello! > >Is there anyway to obtain the loses from runpf calculation, like are >the calculated losses stored anywhere? The losses are not explicitly stored in the branch data field of the mpc struct, but you can compute it via branch to/from flows. mpc = runpf(<casename>); define_constants; Ploss = mpc.branch(:,PF)+mpc.branch(:,PT); Qloss = mpc.branch(:,QF)+mpc.branch(:,QT); Note that the '+' sign is due to assumed direction of the flows. > >I would like more precise numbers than the printed results in matlab >considering that I am doing it for a low voltage grid. The values stored in the various field of mpc struct are all double precision. MATPOWER displays them upto 2 or 3 significant digits. Also note that the default display format for MATLAB is 'short' that displays 5 significant digits. So when one does >> mpc.bus(:,VM) the vector is only displayed upto 5 digits. Use the 'long' format in MATLAB (help format) to display 15 digits. Shri > >Let me know! > >Thank you very much, > >Tim
