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]> 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.