Use a custom gamma distribution with configurable shape parameter when
simulating gain for extra speed.
Use the same tolerance for line search as for overall search