diff options
-rw-r--r-- | src/fit.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |