If you are trying to adjust the generation to respect a branch flow limit it 
sounds like you want to do an optimal power flow. In an OPF the flow limits are 
respected and the generator dispatch depends (primarily) on the generator 
limits and the relative costs of the generators, as well as other network 
constraints such as those on branch flows.

    Ray


> On Sep 20, 2017, at 6:53 PM, Charalambos Ioannou <[email protected]> 
> wrote:
> 
> Hello guys,
> 
> I have a 3 bus system with 3 generators (at bus 1 type PQ with generated 
> power 100 MW and demand 50 MW, bus 2 Type PV solar generator with generated 
> power maximum 50 MW and demand 50 MW, bus 3 the sluck bus)
> 
> What i am trying to do is:
> 
> I defined different demands (A) as shown in the code below and change the 
> demand every minute for busses 1 and 2 and i am saving the results from the 
> branches.
> 
>     mpc = loadcase('micha');
>     A = [10;20;30;40;50;60;70;80];
>     x = [];
>     for i = 1:8
>     mpc.bus(1:2,3) = A(i);
>     results = runpf(mpc);
>     x = [x;results.branch(2,14)];
>     if x(i) > 80 
>         mpc.gen(2,2) = 0;
>     end
>     end
> What i am trying to do next is to check the violation between bus 2 and 3 
> based on the results i am saving from the branches. I want the power flow to 
> be equal to 80 MW or less through that branch (2 and 3). So in the code i 
> define it above and based on the results i am getting from the branches i 
> want to change the generated power from the solar generator.
> 
> For example if generator 1 generate 100 MW and the solar generator 50 MW i 
> have in total 150 MW if the demand changed in 10 MW each the total demand 
> will be 20 MW and the power flow through branch 2 and 3 will be 130 MW but i 
> don't want this i want 80 MW and i have to curtail the solar generator. So in 
> that case i curtail the solar generator at 0 MW and run again the power flow 
> to check if its satisfy the limits i set but i am not getting the results i 
> want.
> 
> How can i do that in programming and set the demand for different values and 
> curtail the solar generator each time to respect the limits i want??
> 
> Thanks in advance!

Reply via email to