cpf_qlim_event_cb
- cpf_qlim_event_cb(k, nx, cx, px, done, rollback, evnts, cb_data, cb_args, results)
cpf_qlim_event_cb()
- Callback to handle QLIM events.[NX, CX, DONE, ROLLBACK, EVNTS, CB_DATA, RESULTS] = CPF_QLIM_EVENT_CB(K, NX, CX, PX, DONE, ROLLBACK, EVNTS, ... CB_DATA, CB_ARGS, RESULTS) Callback to handle QLIM (generator reactive power limit violation) events, triggered by event function CPF_QLIM_EVENT to indicate the point at which an upper or lower reactive power output limit is reached for a generator. When a reactive power limit is encountered, this function zeros out subsequent transfers from that generator, changes it's bus type to PQ, chooses a new reference bus if necessary, and updates the CB_DATA accordingly, setting the next step size to zero. The event msg is updated with the details of the changes. It also requests termination if no more PV or REF buses remain.
For details of the input and output arguments see also
cpf_default_callback()
.