File: testfuncs.h

package info (click to toggle)
nlopt 2.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,272 kB
  • ctags: 4,628
  • sloc: ansic: 22,387; cpp: 20,222; sh: 11,475; python: 323; makefile: 254; fortran: 108
file content (31 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (7)
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