In optimal control problems of switched systems, in general, one needs to find both optimal continuous inputs and optimal switching sequences, since the system dynamics vary before and after every switching instant. In a previous paper, we proved that an optimal control problem can be posed as a two stage optimization problem under some additional assumptions. In general, the two stage optimiza...