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 <[email protected]<mailto:[email protected]>> Reply-To: MATPOWER discussion forum <[email protected]<mailto:[email protected]>> Date: Tuesday, April 25, 2017 at 1:22 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> 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.
