pne_callback_target_lam

pne_callback_target_lam(k, nx, cx, px, s, opt)

pne_callback_target_lam() - Callback function to handle TARGET_LAM events.

[NX, CX, S] = PNE_CALLBACK_TARGET_LAM(K, NX, CX, PX, S, OPT)

Callback to handle TARGET_LAM events, triggered by event function
PNE_EVENT_TARGET_LAM to indicate that a target lambda value has been
reached or that the full continuation curve has been traced.

This function sets the msg field of the event when the target lambda has
been found, raises the S.done flag and sets S.done_msg. If either the
current or predicted next step overshoot the target lambda, it adjusts
the step size to be exactly what is needed to reach the target, and sets
that step to use natural parameterization.

See pne_callback_default() for details of the input and output arguments.