Text this: Online Learning and Simulation Based Algorithms for Stochastic Optimization