thank you my problem was solved On Sat, Feb 13, 2016 at 11:34 PM, Abhyankar, Shrirang G. <abhy...@anl.gov> wrote:
> The two error messages you’ve sent look unrelated to me. Are these from > two different runs? > > In any case, most likely, you are using an older version of MATPOWER. > Download the latest version from here > http://www.pserc.cornell.edu//matpower/. If you are still getting errors, > please send the “entire" error message. > > Shri > > From: Fereshteh Moghateli <f.moghat...@gmail.com> > Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu> > Date: Saturday, February 13, 2016 at 7:24 AM > To: MATPOWER discussion forum <matpowe...@list.cornell.edu> > Subject: Re: save losses > > when i run this command: > > [MVAbase, bus, gen, branch, success, et]=runpf('case30'); > loss=get_losses(baseMVA, bus, branch); > > or this: > r = runpf(mpc); > > losses(k) = sum(get_losses(r)) > these messages appear > > ??? Undefined function or method 'get_losses' for input arguments of type > 'double'. > > OR > ??? Error using ==> runpf > Too many output arguments. > > Where do u think there exist the problem? > > thank you > > > On Sat, Feb 13, 2016 at 1:58 AM, Ray Zimmerman <r...@cornell.edu> wrote: > >> Are you using the latest MATPOWER release (v5.1)? Type mpver to find out >> what version you have. >> >> Ray >> >> >> On Feb 12, 2016, at 4:33 PM, Fereshteh Moghateli <f.moghat...@gmail.com> >> wrote: >> >> this command gives this error " ??? Undefined function or method >> 'get_losses' for input arguments of type 'struct'." >> >> thank you >> >> On Sat, Feb 13, 2016 at 12:28 AM, Shruti Rao <sra...@asu.edu> wrote: >> >>> Hi Fereshteh, >>> >>> get_losses is an inbuilt MATPower function that computes the branch >>> losses and can also compute the reactive injections from line charging. It >>> can also compute the derivatives with respect to voltage etc. , the details >>> can be found in the manual in Chapter 9. >>> >>> >>> Shruti >>> >>> On Fri, Feb 12, 2016 at 1:52 PM, Fereshteh Moghateli < >>> f.moghat...@gmail.com> wrote: >>> >>>> What do you mean by (get_losses)? >>>> thank you >>>> >>>> On Sat, Feb 13, 2016 at 12:05 AM, Ray Zimmerman <r...@cornell.edu> >>>> wrote: >>>> >>>>> I’m not sure what you mean by “save losses” and “50 PF iteration”. If >>>>> you mean something like record the value of total branch active power >>>>> losses for 50 different power flow runs, then you could do something like >>>>> the following: >>>>> >>>>> losses = zeros(50, 1); >>>>> mpc = loadcase(<your_base_case_name>); >>>>> for k = 1:50 >>>>> <update some parameter in mpc> >>>>> r = runpf(mpc); >>>>> losses(k) = sum(get_losses(r)); >>>>> end >>>>> >>>>> Then the losses will be stored in the losses vector. >>>>> >>>>> Ray >>>>> >>>>> >>>>> >>>>> On Feb 12, 2016, at 1:41 PM, Fereshteh Moghateli < >>>>> f.moghat...@gmail.com> wrote: >>>>> >>>>> hi community >>>>> how to save losses in matpower in for example 50 PF iteration? >>>>> >>>>> >>>>> >>>> >>> >>> >>> -- >>> Regards, >>> Shruti Dwarkanath Rao >>> >>> Graduate Research Associate, Arizona State University >>> Co-Vice-Chair: IEEE PES ASU Student Chapter >>> Tempe, AZ, 85281 >>> 650 996 0116 >>> >> >> >> >