Numerical solution of optimal control problems with explicit and implicit switches - Meyer, Andreas (2020)