Re: CPF termination

2017-05-17 Thread Ray Zimmerman
Hi Ahmad,

You simply need to use a priority that is 52 or higher. To see how to set the 
priority from mpoption, see the examples in t_cpf.m 
<http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/t/t_cpf.html> that 
include the 'priority' field in the 'cpf.user_callback’ option, for example, 
those starting at lines 317 and 376 (or line 340 and 399 in the latest version 
on GitHub <https://github.com/MATPOWER/matpower/blob/master/lib/t/t_cpf.m>).

Best regards,

   Ray


> On May 17, 2017, at 7:16 AM, Ahmad Sadiq Abubakar 
> <ahmad.abuba...@futminna.edu.ng> wrote:
> 
> Hi, 
> how to i invoke a user callback function to take higher priority over NOSE 
> point with priority 51.
> 
> Kindly help with cyntax example
> 
>  
> Engr. AHMAD, Abubakar Sadiq
> PhD Student
> Electrical Engineering.
> Bayero University, Kano. Nigeria.
> OR
> Lecturer
> Electrical and Electronics Engineering,
> Federal University of Technology,
> P.M.B, 65, Minna.
> Nigeria.
> +2347068043665
> 
> On Thu, May 11, 2017 at 3:47 PM, Ahmad Sadiq Abubakar 
> <ahmad.abuba...@futminna.edu.ng <mailto:ahmad.abuba...@futminna.edu.ng>> 
> wrote:
> Hi, Ray.
> 
> Thank you for the suggestion
> 
>  
> Engr. AHMAD, Abubakar Sadiq
> PhD Student
> Electrical Engineering.
> Bayero University, Kano. Nigeria.
> OR
> Lecturer
> Electrical and Electronics Engineering,
> Federal University of Technology,
> P.M.B, 65, Minna.
> Nigeria.
> +2347068043665
> 
> On Thu, May 11, 2017 at 1:56 PM, Ray Zimmerman <r...@cornell.edu 
> <mailto:r...@cornell.edu>> wrote:
> Thanks Ahmad for being willing to contribute, and thanks Shri for coaching 
> him on the process.
> 
> Ahmad, yes, each of the 2 events will need both an event function to detect 
> the event, and a corresponding callback function to handle the event. In my 
> opinion cpf_nose_event() and cps_nose_event_cb() are probably the simplest to 
> use as templates.
> 
> On another note, let’s move any further discussion of this implementation to 
> the MATPOWER-DEV-L list 
> <http://www.pserc.cornell.edu/matpower/mailinglists.html#devlist>.
> 
> Thanks,
> 
> Ray
> 
> 
>> On May 10, 2017, at 1:55 PM, Abhyankar, Shrirang G. <abhy...@anl.gov 
>> <mailto:abhy...@anl.gov>> wrote:
>> 
>> Thanks for agreeing to contribute your code. I believe it would be a great 
>> addition to MATPOWER’s CPF. 
>> 
>> It would be good if you can write separate functions for each event type. If 
>> its too much for you, then you can write one event function for now. We can 
>> work on splitting it later.
>> 
>> Shri
>> 
>> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng 
>> <mailto:ahmad.abuba...@futminna.edu.ng>>
>> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
>> <mailto:matpowe...@list.cornell.edu>>
>> Date: Wednesday, May 10, 2017 at 12:15 PM
>> To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
>> <mailto:matpowe...@list.cornell.edu>>
>> Subject: Re: CPF termination
>> 
>> Hi Shrirang,
>> Thanks once again.
>> Yes, I will be honoured to contribute my codes to matpower once it's ready.
>> To implement my written event function for cpf termination, (e.g. 
>> cpf_Vlimit_event or cpf_Llimit_event) does each of these need a separate 
>> callback function?
>> 
>> Alternatively, I thought of implementing this in similar manner as the 
>> cpf.enforce_q_lims. Kindly advice
>> 
>> On May 10, 2017 5:25 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov 
>> <mailto:abhy...@anl.gov>> wrote:
>> Hi Ahmad,
>>   If you are referring to cpf_default_callback.m then NO, you do need to 
>> modify it. The callback function(s) are basically “post-step” that do not 
>> alter the cpf. They are meant to be used for tracking system states for 
>> logging, visualization, or other similar needs. 
>> 
>> Would you be willing to contribute your code to MATPOWER? I can work with 
>> you on cleaning up the code once it is ready.
>> 
>> Thanks,
>> Shri
>> 
>> 
>> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng 
>> <mailto:ahmad.abuba...@futminna.edu.ng>>
>> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
>> <mailto:matpowe...@list.cornell.edu>>
>> Date: Wednesday, May 10, 2017 at 7:44 AM
>> To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
>> <mailto:matpowe...@list.cornell.edu>>
>> Subject: Re: CPF termination
>> 
>> H

Re: CPF termination (cpf_vlim_event.m and cpf_vlim_event_cb.m)

2017-05-17 Thread Ray Zimmerman
Hi Ahmad,

Thanks for offering to contribute this work. And, yes, I suspect you will need 
to modify mpoption.m. The best way to contribute this is to follow the 
instructions 
<https://github.com/MATPOWER/matpower/blob/master/CONTRIBUTING.md#submitting-additions-or-modifications-to-the-code>
 from the CONTRIBUTING 
<https://github.com/MATPOWER/matpower/blob/master/CONTRIBUTING.md> guide on 
GitHub. This gives us a simple way for us to review your code, suggest or offer 
changes to it, and finally merge it into MATPOWER when it is ready.

Please let me know if you need any help with getting things set up to make your 
pull request.

Thanks,

Ray



> On May 17, 2017, at 6:59 AM, Ahmad Sadiq Abubakar 
> <ahmad.abuba...@futminna.edu.ng> wrote:
> 
> Hi Shrirang, and Ray,
> 
> I have some codes for cpf termination at voltage limit violation. I want to 
> test it before sending it here. 
> I choose to enforce voltage limits in similar manner as reactive power 
> limits. However, it seems I need to modify the mpoption.m. Is this correct? 
> Alternatively I can send the codes here.
> 
>  
> Engr. AHMAD, Abubakar Sadiq
> PhD Student
> Electrical Engineering.
> Bayero University, Kano. Nigeria.
> OR
> Lecturer
> Electrical and Electronics Engineering,
> Federal University of Technology,
> P.M.B, 65, Minna.
> Nigeria.
> +2347068043665



Re: CPF termination

2017-05-17 Thread Ahmad Sadiq Abubakar
Hi,
how to i invoke a user callback function to take higher priority over NOSE
point with priority 51.

Kindly help with cyntax example




*Engr. AHMAD, Abubakar Sadiq**PhD Student*

*Electrical Engineering.*

*Bayero University, Kano. Nigeria.*

*OR*


*LecturerElectrical and Electronics Engineering,*

*Federal University of Technology,*

*P.M.B, 65, Minna.*
*Nigeria*.
*+2347068043665*

On Thu, May 11, 2017 at 3:47 PM, Ahmad Sadiq Abubakar <
ahmad.abuba...@futminna.edu.ng> wrote:

> Hi, Ray.
>
> Thank you for the suggestion
>
>
>
>
> *Engr. AHMAD, Abubakar Sadiq**PhD Student*
>
> *Electrical Engineering.*
>
> *Bayero University, Kano. Nigeria.*
>
> *OR*
>
>
> *LecturerElectrical and Electronics Engineering,*
>
> *Federal University of Technology,*
>
> *P.M.B, 65, Minna.*
> *Nigeria*.
> *+2347068043665*
>
> On Thu, May 11, 2017 at 1:56 PM, Ray Zimmerman <r...@cornell.edu> wrote:
>
>> Thanks Ahmad for being willing to contribute, and thanks Shri for
>> coaching him on the process.
>>
>> Ahmad, yes, each of the 2 events will need both an event function to
>> detect the event, and a corresponding callback function to handle the
>> event. In my opinion cpf_nose_event() and cps_nose_event_cb() are
>> probably the simplest to use as templates.
>>
>> On another note, let’s move any further discussion of this implementation
>> to the MATPOWER-DEV-L list
>> <http://www.pserc.cornell.edu/matpower/mailinglists.html#devlist>.
>>
>> Thanks,
>>
>> Ray
>>
>>
>> On May 10, 2017, at 1:55 PM, Abhyankar, Shrirang G. <abhy...@anl.gov>
>> wrote:
>>
>> Thanks for agreeing to contribute your code. I believe it would be a
>> great addition to MATPOWER’s CPF.
>>
>> It would be good if you can write separate functions for each event type.
>> If its too much for you, then you can write one event function for now. We
>> can work on splitting it later.
>>
>> Shri
>>
>> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng>
>> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
>> Date: Wednesday, May 10, 2017 at 12:15 PM
>> To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
>> Subject: Re: CPF termination
>>
>> Hi Shrirang,
>> Thanks once again.
>> Yes, I will be honoured to contribute my codes to matpower once it's
>> ready.
>> To implement my written event function for cpf termination, (e.g.
>> cpf_Vlimit_event or cpf_Llimit_event) does each of these need a separate
>> callback function?
>>
>> Alternatively, I thought of implementing this in similar manner as the
>> cpf.enforce_q_lims. Kindly advice
>>
>> On May 10, 2017 5:25 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov>
>> wrote:
>>
>>> Hi Ahmad,
>>>   If you are referring to cpf_default_callback.m then NO, you do need to
>>> modify it. The callback function(s) are basically “post-step” that do not
>>> alter the cpf. They are meant to be used for tracking system states for
>>> logging, visualization, or other similar needs.
>>>
>>> Would you be willing to contribute your code to MATPOWER? I can work
>>> with you on cleaning up the code once it is ready.
>>>
>>> Thanks,
>>> Shri
>>>
>>>
>>> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng>
>>> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
>>> Date: Wednesday, May 10, 2017 at 7:44 AM
>>> To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
>>> Subject: Re: CPF termination
>>>
>>> Hi Shrirang,
>>>
>>> Thank you for the insight. I try to use cpf_target_lam_event as
>>> template, do I also need to write a callback function for my Vlimts and
>>> Llimits event? or modify the default callback function for cpf termination?
>>>
>>> Kindly excuse my too basic questions, I am novice in coding.
>>>
>>> In anticipation of your reply
>>>
>>>
>>> On Apr 25, 2017 6:45 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov>
>>> wrote:
>>>
>>>> Ahmad,
>>>>   You need to implement an event function (see section 5.5 of the
>>>> manual) for cpf with logic on how you want cpf to terminate. There are a
>>>> few event functions currently implemented — nose point detection, target
>>>> limit, active/reactive power limits — but there is no user-defined event
>>>> function su

CPF termination (cpf_vlim_event.m and cpf_vlim_event_cb.m)

2017-05-17 Thread Ahmad Sadiq Abubakar
Hi Shrirang, and Ray,

I have some codes for cpf termination at voltage limit violation. I want to
test it before sending it here.
I choose to enforce voltage limits in similar manner as reactive power
limits. However, it seems I need to modify the mpoption.m. Is this correct?
Alternatively I can send the codes here.




*Engr. AHMAD, Abubakar Sadiq**PhD Student*

*Electrical Engineering.*

*Bayero University, Kano. Nigeria.*

*OR*


*LecturerElectrical and Electronics Engineering,*

*Federal University of Technology,*

*P.M.B, 65, Minna.*
*Nigeria*.
*+2347068043665*


Re: CPF termination

2017-05-11 Thread Ray Zimmerman
Thanks Ahmad for being willing to contribute, and thanks Shri for coaching him 
on the process.

Ahmad, yes, each of the 2 events will need both an event function to detect the 
event, and a corresponding callback function to handle the event. In my opinion 
cpf_nose_event() and cps_nose_event_cb() are probably the simplest to use as 
templates.

On another note, let’s move any further discussion of this implementation to 
the MATPOWER-DEV-L list 
<http://www.pserc.cornell.edu/matpower/mailinglists.html#devlist>.

Thanks,

Ray


> On May 10, 2017, at 1:55 PM, Abhyankar, Shrirang G. <abhy...@anl.gov> wrote:
> 
> Thanks for agreeing to contribute your code. I believe it would be a great 
> addition to MATPOWER’s CPF. 
> 
> It would be good if you can write separate functions for each event type. If 
> its too much for you, then you can write one event function for now. We can 
> work on splitting it later.
> 
> Shri
> 
> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng 
> <mailto:ahmad.abuba...@futminna.edu.ng>>
> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
> <mailto:matpowe...@list.cornell.edu>>
> Date: Wednesday, May 10, 2017 at 12:15 PM
> To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
> <mailto:matpowe...@list.cornell.edu>>
> Subject: Re: CPF termination
> 
> Hi Shrirang,
> Thanks once again.
> Yes, I will be honoured to contribute my codes to matpower once it's ready.
> To implement my written event function for cpf termination, (e.g. 
> cpf_Vlimit_event or cpf_Llimit_event) does each of these need a separate 
> callback function?
> 
> Alternatively, I thought of implementing this in similar manner as the 
> cpf.enforce_q_lims. Kindly advice
> 
> On May 10, 2017 5:25 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov 
> <mailto:abhy...@anl.gov>> wrote:
> Hi Ahmad,
>   If you are referring to cpf_default_callback.m then NO, you do need to 
> modify it. The callback function(s) are basically “post-step” that do not 
> alter the cpf. They are meant to be used for tracking system states for 
> logging, visualization, or other similar needs. 
> 
> Would you be willing to contribute your code to MATPOWER? I can work with you 
> on cleaning up the code once it is ready.
> 
> Thanks,
> Shri
> 
> 
> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng 
> <mailto:ahmad.abuba...@futminna.edu.ng>>
> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
> <mailto:matpowe...@list.cornell.edu>>
> Date: Wednesday, May 10, 2017 at 7:44 AM
> To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
> <mailto:matpowe...@list.cornell.edu>>
> Subject: Re: CPF termination
> 
> Hi Shrirang,
> 
> Thank you for the insight. I try to use cpf_target_lam_event as template, do 
> I also need to write a callback function for my Vlimts and Llimits event? or 
> modify the default callback function for cpf termination?
> 
> Kindly excuse my too basic questions, I am novice in coding.
> 
> In anticipation of your reply
> 
> 
> On Apr 25, 2017 6:45 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov 
> <mailto:abhy...@anl.gov>> wrote:
> Ahmad,
>   You need to implement an event function (see section 5.5 of the manual) for 
> cpf with logic on how you want cpf to terminate. There are a few event 
> functions currently implemented — nose point detection, target limit, 
> active/reactive power limits — but there is no user-defined event function 
> support yet. So, here’s what you’ll need to do:
> 
> i) Use cpf_nose_event.m or cpf_target_lam_event as a template to write your 
> own event function. 
> I) Modify runcpf code to register your event function (see lines 173-190 on 
> how different event functions are registered).
> 
> Let us know if you need more help.
> 
> Shri
> 
> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng 
> <mailto:ahmad.abuba...@futminna.edu.ng>>
> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu 
> <mailto:matpowe...@list.cornell.edu>>
> Date: Tuesday, April 25, 2017 at 1:22 PM
> To: "matpower-l@cornell.edu <mailto:matpower-l@cornell.edu>" 
> <matpower-l@cornell.edu <mailto:matpower-l@cornell.edu>>
> Subject: CPF termination
> 
> Hi,
> I want to run cpf such that, it stops either at Vmax, Vmin, or ratedA, ratedB 
> and ratedC. In other words, cpf termination should respect bus voltage limits 
> and line thermal limit constraints.
> 
> Kindly assist on how to implement the codes.



Re: CPF termination

2017-05-10 Thread Ahmad Sadiq Abubakar
Hi Shrirang,
Thanks once again.
Yes, I will be honoured to contribute my codes to matpower once it's ready.
To implement my written event function for cpf termination, (e.g.
cpf_Vlimit_event or cpf_Llimit_event) does each of these need a separate
callback function?

Alternatively, I thought of implementing this in similar manner as the
cpf.enforce_q_lims. Kindly advice

On May 10, 2017 5:25 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov> wrote:

> Hi Ahmad,
>   If you are referring to cpf_default_callback.m then NO, you do need to
> modify it. The callback function(s) are basically “post-step” that do not
> alter the cpf. They are meant to be used for tracking system states for
> logging, visualization, or other similar needs.
>
> Would you be willing to contribute your code to MATPOWER? I can work with
> you on cleaning up the code once it is ready.
>
> Thanks,
> Shri
>
>
> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng>
> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
> Date: Wednesday, May 10, 2017 at 7:44 AM
> To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
> Subject: Re: CPF termination
>
> Hi Shrirang,
>
> Thank you for the insight. I try to use cpf_target_lam_event as template,
> do I also need to write a callback function for my Vlimts and Llimits
> event? or modify the default callback function for cpf termination?
>
> Kindly excuse my too basic questions, I am novice in coding.
>
> In anticipation of your reply
>
>
> On Apr 25, 2017 6:45 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov> wrote:
>
>> Ahmad,
>>   You need to implement an event function (see section 5.5 of the manual)
>> for cpf with logic on how you want cpf to terminate. There are a few event
>> functions currently implemented — nose point detection, target limit,
>> active/reactive power limits — but there is no user-defined event function
>> support yet. So, here’s what you’ll need to do:
>>
>> i) Use cpf_nose_event.m or cpf_target_lam_event as a template to write
>> your own event function.
>> I) Modify runcpf code to register your event function (see lines 173-190
>> on how different event functions are registered).
>>
>> Let us know if you need more help.
>>
>> Shri
>>
>> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng>
>> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
>> Date: Tuesday, April 25, 2017 at 1:22 PM
>> To: "matpower-l@cornell.edu" <matpower-l@cornell.edu>
>> Subject: CPF termination
>>
>> Hi,
>> I want to run cpf such that, it stops either at Vmax, Vmin, or ratedA,
>> ratedB and ratedC. In other words, cpf termination should respect bus
>> voltage limits and line thermal limit constraints.
>>
>> Kindly assist on how to implement the codes.
>>
>>


Re: CPF termination

2017-05-10 Thread Abhyankar, Shrirang G.
Hi Ahmad,
  If you are referring to cpf_default_callback.m then NO, you do need to modify 
it. The callback function(s) are basically “post-step” that do not alter the 
cpf. They are meant to be used for tracking system states for logging, 
visualization, or other similar needs.

Would you be willing to contribute your code to MATPOWER? I can work with you 
on cleaning up the code once it is ready.

Thanks,
Shri


From: Ahmad Sadiq Abubakar 
<ahmad.abuba...@futminna.edu.ng<mailto:ahmad.abuba...@futminna.edu.ng>>
Reply-To: MATPOWER discussion forum 
<matpowe...@list.cornell.edu<mailto:matpowe...@list.cornell.edu>>
Date: Wednesday, May 10, 2017 at 7:44 AM
To: MATPOWER discussion forum 
<matpowe...@list.cornell.edu<mailto:matpowe...@list.cornell.edu>>
Subject: Re: CPF termination

Hi Shrirang,

Thank you for the insight. I try to use cpf_target_lam_event as template, do I 
also need to write a callback function for my Vlimts and Llimits event? or 
modify the default callback function for cpf termination?

Kindly excuse my too basic questions, I am novice in coding.

In anticipation of your reply


On Apr 25, 2017 6:45 PM, "Abhyankar, Shrirang G." 
<abhy...@anl.gov<mailto:abhy...@anl.gov>> wrote:
Ahmad,
  You need to implement an event function (see section 5.5 of the manual) for 
cpf with logic on how you want cpf to terminate. There are a few event 
functions currently implemented — nose point detection, target limit, 
active/reactive power limits — but there is no user-defined event function 
support yet. So, here’s what you’ll need to do:

i) Use cpf_nose_event.m or cpf_target_lam_event as a template to write your own 
event function.
I) Modify runcpf code to register your event function (see lines 173-190 on how 
different event functions are registered).

Let us know if you need more help.

Shri

From: Ahmad Sadiq Abubakar 
<ahmad.abuba...@futminna.edu.ng<mailto:ahmad.abuba...@futminna.edu.ng>>
Reply-To: MATPOWER discussion forum 
<matpowe...@list.cornell.edu<mailto:matpowe...@list.cornell.edu>>
Date: Tuesday, April 25, 2017 at 1:22 PM
To: "matpower-l@cornell.edu<mailto:matpower-l@cornell.edu>" 
<matpower-l@cornell.edu<mailto:matpower-l@cornell.edu>>
Subject: CPF termination

Hi,
I want to run cpf such that, it stops either at Vmax, Vmin, or ratedA, ratedB 
and ratedC. In other words, cpf termination should respect bus voltage limits 
and line thermal limit constraints.

Kindly assist on how to implement the codes.


Re: CPF termination

2017-05-10 Thread Ahmad Sadiq Abubakar
Hi Shrirang,

Thank you for the insight. I try to use cpf_target_lam_event as template,
do I also need to write a callback function for my Vlimts and Llimits
event? or modify the default callback function for cpf termination?

Kindly excuse my too basic questions, I am novice in coding.

In anticipation of your reply


On Apr 25, 2017 6:45 PM, "Abhyankar, Shrirang G." <abhy...@anl.gov> wrote:

> Ahmad,
>   You need to implement an event function (see section 5.5 of the manual)
> for cpf with logic on how you want cpf to terminate. There are a few event
> functions currently implemented — nose point detection, target limit,
> active/reactive power limits — but there is no user-defined event function
> support yet. So, here’s what you’ll need to do:
>
> i) Use cpf_nose_event.m or cpf_target_lam_event as a template to write
> your own event function.
> I) Modify runcpf code to register your event function (see lines 173-190
> on how different event functions are registered).
>
> Let us know if you need more help.
>
> Shri
>
> From: Ahmad Sadiq Abubakar <ahmad.abuba...@futminna.edu.ng>
> Reply-To: MATPOWER discussion forum <matpowe...@list.cornell.edu>
> Date: Tuesday, April 25, 2017 at 1:22 PM
> To: "matpower-l@cornell.edu" <matpower-l@cornell.edu>
> Subject: CPF termination
>
> Hi,
> I want to run cpf such that, it stops either at Vmax, Vmin, or ratedA,
> ratedB and ratedC. In other words, cpf termination should respect bus
> voltage limits and line thermal limit constraints.
>
> Kindly assist on how to implement the codes.
>
>


Re: CPF termination

2017-04-25 Thread Abhyankar, Shrirang G.
Ahmad,
  You need to implement an event function (see section 5.5 of the manual) for 
cpf with logic on how you want cpf to terminate. There are a few event 
functions currently implemented — nose point detection, target limit, 
active/reactive power limits — but there is no user-defined event function 
support yet. So, here’s what you’ll need to do:

i) Use cpf_nose_event.m or cpf_target_lam_event as a template to write your own 
event function.
I) Modify runcpf code to register your event function (see lines 173-190 on how 
different event functions are registered).

Let us know if you need more help.

Shri

From: Ahmad Sadiq Abubakar 
<ahmad.abuba...@futminna.edu.ng<mailto:ahmad.abuba...@futminna.edu.ng>>
Reply-To: MATPOWER discussion forum 
<matpowe...@list.cornell.edu<mailto:matpowe...@list.cornell.edu>>
Date: Tuesday, April 25, 2017 at 1:22 PM
To: "matpower-l@cornell.edu<mailto:matpower-l@cornell.edu>" 
<matpower-l@cornell.edu<mailto:matpower-l@cornell.edu>>
Subject: CPF termination

Hi,
I want to run cpf such that, it stops either at Vmax, Vmin, or ratedA, ratedB 
and ratedC. In other words, cpf termination should respect bus voltage limits 
and line thermal limit constraints.

Kindly assist on how to implement the codes.


CPF termination

2017-04-25 Thread Ahmad Sadiq Abubakar
Hi,
I want to run cpf such that, it stops either at Vmax, Vmin, or ratedA,
ratedB and ratedC. In other words, cpf termination should respect bus
voltage limits and line thermal limit constraints.

Kindly assist on how to implement the codes.