Discrete control problems with phase constraints