chiark / gitweb /
added nlopt_force_stop termination
[nlopt.git] / util / nlopt-util.h
index 2c3f6542fc7058257a19c9e3f417f4e54323829d..715e66955cb33c120ce64013fe510e0111bfc102 100644 (file)
@@ -75,6 +75,7 @@ typedef struct {
      const double *xtol_abs;
      int nevals, maxeval;
      double maxtime, start;
+     int *force_stop;
 } nlopt_stopping;
 extern int nlopt_stop_f(const nlopt_stopping *stop, double f, double oldf);
 extern int nlopt_stop_ftol(const nlopt_stopping *stop, double f, double oldf);
@@ -88,6 +89,7 @@ extern int nlopt_stop_xs(const nlopt_stopping *stop,
 extern int nlopt_stop_evals(const nlopt_stopping *stop);
 extern int nlopt_stop_time(const nlopt_stopping *stop);
 extern int nlopt_stop_evalstime(const nlopt_stopping *stop);
+extern int nlopt_stop_forced(const nlopt_stopping *stop);
 
 /* for local optimizations, temporarily setting eval/time limits */
 extern nlopt_result nlopt_optimize_limited(nlopt_opt opt,