From 414ceefe8f651605ddf1cd80704cccfd8690a153 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 14 Aug 2018 14:53:04 -0500 Subject: set stopping critera --- src/fit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fit.c b/src/fit.c index 80b4b3f..d28a58d 100644 --- a/src/fit.c +++ b/src/fit.c @@ -89,6 +89,7 @@ int main(int argc, char **argv) nlopt_opt opt = nlopt_create(NLOPT_LN_SBPLX, 7); nlopt_set_min_objective(opt,nll,&ev); + nlopt_set_ftol_abs(opt, 1e-5); init_interpolation(); init_charge(); @@ -132,13 +133,13 @@ int main(int argc, char **argv) if (ev.run != -1) { if (ev.run != bev.run || ev.gtid != bev.gtr_id) { /* New event, so we need to fit the old event. */ - x[0] = 500.0; + x[0] = 1000.0; x[1] = 100.0; x[2] = 100.0; x[3] = 100.0; x[4] = 1.57; x[5] = 0.0; - x[6] = 120.0; + x[6] = 130.0; ss[0] = 10.0; ss[1] = 10.0; -- cgit