Optimal control of a hybrid system with pathwise average cost | IEEE Conference Publication | IEEE Xplore