This is obviously not the case30 that is included with MATPOWER, so I’m afraid 
you will have to get help from whoever wrote that version of case30.

Sorry I can’t be of more help,

    Ray



> On Oct 27, 2015, at 1:38 AM, Mariam Mughees <[email protected]> wrote:
> 
> hi ray thanks for your quick responce.
> i want to explain all programm to u so you can help me in defining constants 
> this is first function line in which case30 takes variables values.
> function mpc =case30(cap1,cap2,cap3,cap4,cap5,cap6,tap) ;
>  then capacitors are defined as 
>  if cap1==1
> c1=0.6
> else c1=0
> end
> if cap2==1
> c3=0.6
> else c3=0
> end
> 
> then capacitors are defined in bus data as 
> 2 1 w*PL2_day(seq) w*QL2_day(seq)-c1 0 0 ...
> and oltc tap in branch data as
> 1 2 0.11 0.32 0 130 130 130 tap 0 1 -360 360;
>  now is it correct to define data as you explained 
>  
>  mpc.bus(cap1_busidx, BS) = cap1(hr);
>   i want to know that i have to define values as 
>    mpc.bus (cap_busidx,BS)=cap1(1 0 0 1 0 1 0); for 24 hours
> 
> 
> From: [email protected]
> Subject: Re: oltc and shunt capacitor
> Date: Mon, 26 Oct 2015 15:38:44 -0400
> To: [email protected]
> 
> Without more information about your setup, I’m afraid it’s a bit difficult to 
> say exactly how to accomplish what you want. The case30() function included 
> in MATPOWER is a simple case file that does not take any arguments. It seems 
> as if you are probably attempting to update some capacitor and transformer 
> tap parameters of the case30 to run a slightly different power flow or OPF 
> for each of 24 hours. That can be done by loading the case30 and then 
> modifying the appropriate elements in the bus and branch matrices manually 
> based on the cap and tap values you have for that hour, something like the 
> following ...
> 
> define_constants
> mpc0 = loadcase('case30');
> for hr = 1:24
>     mpc = mpc0;
>     mpc.bus(cap1_busidx, BS) = cap1(hr);
>     mpc.bus(cap2_busidx, BS) = cap2(hr);
>     mpc.branch(xfmr_idx, TAP) = tap(hr);
>     results(hr) = runpf(mpc);
> end
> 
> Ray
> 
> 
> 
> On Oct 26, 2015, at 5:54 AM, Mariam Mughees <[email protected] 
> <mailto:[email protected]>> wrote:
> 
> hi ,
> i have code which i which i donot know some thing LIKE
> function mpc=case30(cap1,cap2,tap)
> i want to specify each variable for 24 hour simulation.
> hour_simu    cap1    cap2      tap
>  1                         1           0          0
> 2                             0         1           -1
> for 24 
> and i want to know that how to define it in  matpower.
> 

Reply via email to