You Can write a simple code to find buses crossing their limit. Use a loop,
for example:
index=0;
For i=1:9
If results.bus(i, vm) < 0.90 or
results.bus(bus_number, vm) < 1.10
Bus[index]=i;
Index=index+1;
End
End


Le sam. 1 déc. 2018 à 8:49 PM, Meraj Fouad <[email protected]> a écrit :

> Thank you sir for your kind response.
>  I have a query. It is pretty possible to write a code which will find the
> buses crossing their voltage limit form OPF result.
>
> But I need to understand that  If there is any variable which  only
> contains the violated buses.For example which variable contains the
> information shown in the provided screenshot? This screenshot is taken from
> command window which is generated automatically by "runopf() " function for
> "case9" system .
>
> Best regards
> Fouad Hasan
>
> On Thu, Nov 29, 2018 at 1:02 AM NAIDJI Ilyes <[email protected]>
> wrote:
>
>> Voltage magnitude :
>> results.bus(bus_number, vm)
>>
>>
>> Le jeu. 29 nov. 2018 à 07:24, Meraj Fouad <[email protected]> a écrit :
>>
>>> [image: image.png]
>>>
>>> On Thu, Nov 29, 2018 at 12:21 AM Meraj Fouad <[email protected]> wrote:
>>>
>>>> Dear All,
>>>> I am a new user of MATPOWER. When I run the following simple code, it
>>>> gives me the violation information like voltage limit or branch flow limit
>>>> in command window.
>>>>
>>>> But I need to know, which variable contain this information so that I
>>>> can export it in a excel file.
>>>> Thank you. Any kind help is appreciated.
>>>>
>>>> Best Regards
>>>> Fouad Hasan
>>>>
>>>>
>>>> mpc=loadcase('case9');
>>>> results=runopf(mpc);
>>>>
>>>

Reply via email to