Formulation with grad of function squared

After you solve the system for the first time, you have a much better initial guess than a constant value of 1 everywhere. In essence you’re probably deeper in an attractor region. See some hints and tips here.

1 Like