You can set these control variables in the MATPOWER case struct and then pass 
the struct to the runpf routine.

%% Read the data file and create MATPOWER case struct
mpc = feval(<your-casedata-file>)

.. set the control variables in the appropriate fields of the mpc struct

%% run power flow
mpc = runpf(mpc);

The generator voltage set point is in the generator data (mpc.gen), tap 
settings in the branch data (mpc.branch), and shunt capacitor values in the bus 
data (mpc.bus).
See caseformat.m for the format in which MATPOWER stores the data.

Shri
From: ambi ka <[email protected]<mailto:[email protected]>>
Reply-To: MATPOWER discussion forum 
<[email protected]<mailto:[email protected]>>
Date: Thu, 20 Feb 2014 16:38:47 +0800
To: MATPOWER discussion forum 
<[email protected]<mailto:[email protected]>>
Subject: Re: reg mat power

Sir,
I am considering the control variables as voltage, tap settings and shunt 
capacitor values.
Those control variables are to be generated randomly and those values should be 
taken to runpf and after calculating the power flow i should get the output. 
Then How to do this process in run pf? Can you guide me


On Thursday, 20 February 2014 11:00 AM, "Abhyankar, Shrirang G." 
<[email protected]<mailto:[email protected]>> wrote:
Ambika,
   i)  nargin and nargout mean 'number of input function arguments' and 'number 
of function output arguments' respectively. These are in-built MATLAB utility 
functions, not MATPOWER functions.
  ii)  Could you be more specific about what control variables you are 
considering and how you are trying to pass them.
 iii)  What do you mean by "read heading"? There is no such thing in runpf.
  iv) Which MATPOWER version are you using?

 Shri

From: ambi ka <[email protected]<mailto:[email protected]>>
Reply-To: MATPOWER discussion forum 
<[email protected]<mailto:[email protected]>>
Date: Thu, 20 Feb 2014 12:58:03 +0800
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: reg mat power

Sir,
In matpower, what is the significance of "nargin" and "nargout"
I am doing reactive power optimization. So i have to generate control variables 
randomly and using that random variables i have to run "runpf" again. But it is 
not accepting. i dont know why?
I specified the variables under the "read heading" in runpf program.
from
ambika
AP/ sri krishna college of technology



Reply via email to