Technology for the solution of hybrid optimal control problems in astronautics