A numerical method for the optimal control of switched systems | IEEE Conference Publication | IEEE Xplore