Skip to main content
. 2023 Dec 4;33(12):123108. doi: 10.1063/5.0178947

ALGORITHM 2.

Resolve_extremal_curve.

Input: Initial point q0Rd and velocity v0Rd.
Output: Final point q and velocity v of the extremal curve γ.
Construct numerical continuation curve γ for
{Hess(Z)grad(Z)=λgrad(Z)Z(γ(t))=L
such that γ(0)=q0 and γ˙(0)=v0. L is the value of the level set at the current time step.
Prolong γ until the first instant t>0 such that γ(t)V but γ(t+s)V for any s>0.
return γ(t), γ˙(t)