On obtaining the stationarity conditions in an optimal control problem for a trajectory with a smooth contact with the phase boundary | IEEE Conference Publication | IEEE Xplore