MPDopt: A versatile toolbox for adjoint-based model predictive control of smooth and switched nonlinear dynamic systems | IEEE Conference Publication | IEEE Xplore