Simulation results and optimization

Write code to optimize simulation parameters and code to store/view the results.