1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#ifndef TESTFUNCS_H
#define TESTFUNCS_H
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#include "nlopt.h"
typedef struct {
nlopt_func f;
void *f_data;
int has_gradient;
int n;
const double *lb, *ub, *xmin;
double minf;
const char *name;
} testfunc;
#define NTESTFUNCS 22
extern const testfunc testfuncs[NTESTFUNCS];
extern int testfuncs_verbose;
extern int testfuncs_counter;
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif
|