ipc-sim / rigid-ipc

Robust, intersection-free, simulations of rigid bodies.
https://ipc-sim.github.io/rigid-ipc
MIT License
138 stars 17 forks source link

Newton fix #12

Closed zfergus closed 5 years ago

zfergus commented 5 years ago

I updated the Newton solver to fail to gradient descent if the line search fails. This helps the optimization make progress even when the Hessian is ill-conditioned. The next step after this pull request is merged is to add a quasi-Newton solver (e.g. BFGS).

zfergus commented 5 years ago

I updated this PR with suggested changes and some tests.