Text this: Simulation and optimization in finance