If generator w is a wind generator and you have the desired wind output values
in a vector wind_output, you can do something like this …
define_constants;
mpc0 = loadcase('my_case39');
for i = 1:length(wind_output)
mpc = mpc0;
mpc.gen(w, PMAX) = wind_output(i);
results(i) = runopf(mpc);
end
Hope this helps,
Ray
> On Nov 22, 2018, at 12:10 AM, Syed Rizwan ul Hassan
> <[email protected]> wrote:
>
> Hi,
> I am working on (case39.m) with wind generation added on some of its buses.
> I wanna analyze the power system by performing OPF for multiple values of
> Wind output power due to its speed variations.
> If I give only one value of wind power output to then 'runopf' command
> execute successfully but how can I give multiple values of wind power at
> input and may check system performance for each value?
> because 'runopf' command is not working when I give multiple values as input.
> May you please lemme know how can I run and analyse my power system with
> multiple wind power values?