You can just copy cpf_default_callback.m (or any of the other cpf_<event>_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 <[email protected]> wrote:
>
> I mean the function.
>
> On Jul 5, 2017 10:54 PM, "Majid Mehdizadeh" <[email protected]
> <mailto:[email protected]>> wrote:
> Thw problem is how to make that equation!
>
>
> On Jul 5, 2017 10:15 PM, "Abhyankar, Shrirang G." <[email protected]
> <mailto:[email protected]>> 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', <name_of_callback_function>);
>
>
>
> Shri
>
>
>
>
> From: <[email protected]
> <mailto:[email protected]>> on behalf of Majid
> Mehdizadeh <[email protected] <mailto:[email protected]>>
> Reply-To: MATPOWER discussion forum <[email protected]
> <mailto:[email protected]>>
> Date: Wednesday, July 5, 2017 at 10:58 AM
> To: "[email protected] <mailto:[email protected]>"
> <[email protected] <mailto:[email protected]>>
> 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/>
>
>