google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.
https://mujoco.org
Apache License 2.0
7.96k stars 799 forks source link

Regarding the new boxQP implementation #505

Closed nrkumar93 closed 2 years ago

nrkumar93 commented 2 years ago

Glad to see the new boxQP implementation and looking forward to the next release.

Just want to ask if it

  1. implements the Projected Newton Method as it is not explicitly stated anywhere yet.
  2. is ready to use or is a work in progress?

Thanks

yuvaltassa commented 2 years ago
  1. As stated in the changelog, it implements the algorithm described in the appendix of this paper. Yes, it is a projected Newton method.

  2. It is ready to use, but there is a an upcoming small modification. Currently it assumes you are giving it a symmetric Hessian. If you give it an asymmetric one it will fail to converge. After the upcoming change it only reads from the lower triangle which will effectively symmetrise the Hessian, making the above issue moot.

yuvaltassa commented 2 years ago

a6b338db6481ff6d94ea62a11eecd90962d8903d was just pushed with the aforementioned improvement.