Re: CPF Callback Functions

2017-07-06 Thread Ray Zimmerman
You can just copy cpf_default_callback.m (or any of the other cpf__cb.m 
callback functions), rename it, and replace the contents with your own 
functionality.

Ray


> On Jul 5, 2017, at 2:25 PM, Majid Mehdizadeh  wrote:
> 
> I mean the function.
> 
> On Jul 5, 2017 10:54 PM, "Majid Mehdizadeh"  <mailto:majidmeh@gmail.com>> wrote:
> Thw problem is how to make that equation!
> 
> 
> On Jul 5, 2017 10:15 PM, "Abhyankar, Shrirang G."  <mailto:abhy...@anl.gov>> wrote:
> Here’s an example 
> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/cpf_default_callback.html>
>  of a CPF call back function. The callback function can be set through 
> MATPOWER options struct
> 
>  
> 
> mpopt = mpoption 
> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/mpoption.html>(mpopt,
>  'cpf.user_callback', );
> 
>  
> 
> Shri
> 
> 
>  
> 
> From:  <mailto:bounce-121640146-73493...@list.cornell.edu>> on behalf of Majid 
> Mehdizadeh mailto:majidmeh@gmail.com>>
> Reply-To: MATPOWER discussion forum  <mailto:matpowe...@list.cornell.edu>>
> Date: Wednesday, July 5, 2017 at 10:58 AM
> To: "matpower-l@cornell.edu <mailto:matpower-l@cornell.edu>" 
> mailto:matpower-l@cornell.edu>>
> Subject: CPF Callback Functions
> 
>  
> 
> 
> 
> ​Hi ,I can not use the call back functions in cpf code , Any body can bring 
> me an example of using a call back function. i want to access the tangent 
> vector in each iteration. Thanks ​
> 
> 
> --
> 
> Best Regards
> Majid Mehdizadeh
> 
> Ph.D Student,  Department of Electrical Engineering, 
> 
> Faculty of Engineering, Ferdowsi University of Mashhad
> 
> 
> Substation and Transmission Line Expert, Engineering office,
> Khorasan Regional Electric Co.
> 
> Tel: +98 5136103594 Fax: +98 5136103509
> 
> http://mehdizadeh.majid.student.um.ac.ir 
> <http://mehdizadeh.majid.student.um.ac.ir/> 
> 
> 



Re: CPF Callback Functions

2017-07-05 Thread Majid Mehdizadeh
I mean the function.

On Jul 5, 2017 10:54 PM, "Majid Mehdizadeh"  wrote:

> Thw problem is how to make that equation!
>
>
> On Jul 5, 2017 10:15 PM, "Abhyankar, Shrirang G."  wrote:
>
>> Here’s an example
>> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/cpf_default_callback.html>
>> of a CPF call back function. The callback function can be set through
>> MATPOWER options struct
>>
>>
>>
>> mpopt = mpoption
>> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/mpoption.html>(mpopt,
>> 'cpf.user_callback', );
>>
>>
>>
>> Shri
>>
>>
>>
>> *From: * on behalf of Majid
>> Mehdizadeh 
>> *Reply-To: *MATPOWER discussion forum 
>> *Date: *Wednesday, July 5, 2017 at 10:58 AM
>> *To: *"matpower-l@cornell.edu" 
>> *Subject: *CPF Callback Functions
>>
>>
>>
>>
>> ​Hi ,I can not use the call back functions in cpf code , Any body can
>> bring me an example of using a call back function. i want to access the
>> tangent vector in each iteration. Thanks ​
>>
>>
>> --
>>
>>
>>
>>
>> *Best Regards Majid Mehdizadeh Ph.D Student,  **Department of Electrical
>> Engineering, *
>>
>> *Faculty of Engineering, Ferdowsi University of Mashhad*
>>
>>
>>
>> * Substation and Transmission Line Expert, Engineering office, Khorasan
>> Regional Electric Co.*
>>
>> *Tel: +98 5136103594 Fax: +98 5136103509*
>>
>> *http://mehdizadeh.majid.student.um.ac.ir
>> <http://mehdizadeh.majid.student.um.ac.ir> *
>>
>>


Re: CPF Callback Functions

2017-07-05 Thread Majid Mehdizadeh
Thw problem is how to make that equation!


On Jul 5, 2017 10:15 PM, "Abhyankar, Shrirang G."  wrote:

> Here’s an example
> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/cpf_default_callback.html>
> of a CPF call back function. The callback function can be set through
> MATPOWER options struct
>
>
>
> mpopt = mpoption
> <http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/mpoption.html>(mpopt,
> 'cpf.user_callback', );
>
>
>
> Shri
>
>
>
> *From: * on behalf of Majid
> Mehdizadeh 
> *Reply-To: *MATPOWER discussion forum 
> *Date: *Wednesday, July 5, 2017 at 10:58 AM
> *To: *"matpower-l@cornell.edu" 
> *Subject: *CPF Callback Functions
>
>
>
>
> ​Hi ,I can not use the call back functions in cpf code , Any body can
> bring me an example of using a call back function. i want to access the
> tangent vector in each iteration. Thanks ​
>
>
> --
>
>
>
>
> *Best Regards Majid Mehdizadeh Ph.D Student,  **Department of Electrical
> Engineering, *
>
> *Faculty of Engineering, Ferdowsi University of Mashhad*
>
>
>
> * Substation and Transmission Line Expert, Engineering office, Khorasan
> Regional Electric Co.*
>
> *Tel: +98 5136103594 Fax: +98 5136103509*
>
> *http://mehdizadeh.majid.student.um.ac.ir
> <http://mehdizadeh.majid.student.um.ac.ir> *
>
>


Re: CPF Callback Functions

2017-07-05 Thread Abhyankar, Shrirang G.
Here’s an 
example<http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/cpf_default_callback.html>
 of a CPF call back function. The callback function can be set through MATPOWER 
options struct

mpopt = 
mpoption<http://www.pserc.cornell.edu/matpower/docs/ref/matpower6.0/mpoption.html>(mpopt,
 'cpf.user_callback', );

Shri

From:  on behalf of Majid 
Mehdizadeh 
Reply-To: MATPOWER discussion forum 
Date: Wednesday, July 5, 2017 at 10:58 AM
To: "matpower-l@cornell.edu" 
Subject: CPF Callback Functions


​Hi ,I can not use the call back functions in cpf code , Any body can bring me 
an example of using a call back function. i want to access the tangent vector 
in each iteration. Thanks ​

--
Best Regards
Majid Mehdizadeh

Ph.D Student,  Department of Electrical Engineering,
Faculty of Engineering, Ferdowsi University of Mashhad

Substation and Transmission Line Expert, Engineering office,
Khorasan Regional Electric Co.

Tel: +98 5136103594 Fax: +98 5136103509

http://mehdizadeh.majid.student.um.ac.ir




CPF Callback Functions

2017-07-05 Thread Majid Mehdizadeh
​Hi ,I can not use the call back functions in cpf code , Any body can bring
me an example of using a call back function. i want to access the tangent
vector in each iteration. Thanks ​

-- 



*Best RegardsMajid MehdizadehPh.D Student,  **Department of Electrical
Engineering, *
*Faculty of Engineering, Ferdowsi University of Mashhad*






*Substation and Transmission Line Expert, Engineering office,Khorasan
Regional Electric Co.Tel: +98 5136103594 Fax: +98
5136103509http://mehdizadeh.majid.student.um.ac.ir
 *