chiark / gitweb /
Reset numevals
authorJulien Schueller <schueller@phimeca.com>
Fri, 22 Jun 2018 13:56:12 +0000 (15:56 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Jun 2018 13:56:12 +0000 (15:56 +0200)
src/api/optimize.c

index 024db6907fb20f02be72e8478de914e7b154fc0b..9592653bb32de384e700570c80477e9ab5ca6b48 100644 (file)
@@ -411,6 +411,7 @@ static nlopt_result nlopt_optimize_(nlopt_opt opt, double *x, double *minf)
      stop.ftol_abs = opt->ftol_abs;
      stop.xtol_rel = opt->xtol_rel;
      stop.xtol_abs = opt->xtol_abs;
+     opt->numevals = 0;
      stop.nevals_p = &(opt->numevals);
      stop.maxeval = opt->maxeval;
      stop.maxtime = opt->maxtime;