Optimization Problems under Uncertainty in Smart Cities