Convert simulator to an iterator so clients can retrieve metric data without printing it.
Add a script that uses scipy.opt.fmin to find optimal parameter settings.