opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
758 stars 308 forks source link

Create toy problem based on `CasOC::Problem` for testing AD formulations #3773

Open nickbianco opened 2 months ago

nickbianco commented 2 months ago

In order to support automatic differentiation in Moco through MocoCasADiSolver, we need to first verify that basic AD formulations will be compatible with how we currently construct OCPs at the low-level with CasADi. Most importantly, we need to verify that an additional compile step will not be necessary to convert an OpenSim model to an autodiff'd function (as in Antoine's framework).

A toy problem will let us test different AD solutions, notable using the Recorder type or Enzyme.