7 #endif /* __cplusplus */
10 extern double nlopt_seconds(void);
11 extern unsigned long nlopt_time_seed(void);
13 /* pseudorandom number generation by Mersenne twister algorithm */
14 extern void nlopt_init_genrand(unsigned long s);
15 extern double nlopt_urand(double a, double b);
17 /* stopping criteria */
24 const double *xtol_abs;
26 double maxtime, start;
28 extern int nlopt_stop_f(const nlopt_stopping *stop, double f, double oldf);
29 extern int nlopt_stop_ftol(const nlopt_stopping *stop, double f, double oldf);
30 extern int nlopt_stop_x(const nlopt_stopping *stop,
31 const double *x, const double *oldx);
32 extern int nlopt_stop_xs(const nlopt_stopping *stop,
33 const double *xs, const double *oldxs,
34 const double *scale_min, const double *scale_max);
35 extern int nlopt_stop_evals(const nlopt_stopping *stop);
36 extern int nlopt_stop_time(const nlopt_stopping *stop);
40 #endif /* __cplusplus */