Mixed Convexity And Optimization Results For Functions With Integer And Real Variables With Applications To Queueing Systems