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==1c1=0.6else c1=0endif cap2==1c3=0.6else c3=0end 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 as1 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_constantsmpc0 = 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]> wrote:hi ,i have code which i which i donot know some thing LIKEfunction mpc=case30(cap1,cap2,tap)i want to specify each variable for 24 hour simulation.hour_simu cap1 cap2 tap 1 1 0 02 0 1 -1for 24 and i want to know that how to define it in matpower.
