From 27072670a13a257f2e2350877f8e5e97bd4844fd Mon Sep 17 00:00:00 2001 From: tlatorre Date: Sun, 17 Mar 2019 11:55:46 -0500 Subject: set a relative tolerance of 1e-2 on the optimization parameters in the fast fit --- src/fit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/fit.c b/src/fit.c index 35d5950..4674e3d 100644 --- a/src/fit.c +++ b/src/fit.c @@ -5340,6 +5340,7 @@ int fit_event2(event *ev, double *xopt, double *fmin, int *id, size_t n, double fpars.print = 0; fpars.charge_only = 0; nlopt_set_ftol_abs(opt, 1e-5); + nlopt_set_xtol_rel(opt, 1e-2); nlopt_set_maxeval(opt, 10000); fpars.n = n; -- cgit