chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use deterministic test seed
[nlopt.git]
/
test
/
testfuncs.h
1
#ifndef TESTFUNCS_H
2
#define TESTFUNCS_H
3
4
#ifdef __cplusplus
5
extern "C" {
6
#endif /* __cplusplus */
7
8
#include "nlopt.h"
9
10
typedef struct {
11
nlopt_func f;
12
void *f_data;
13
int has_gradient;
14
int n;
15
const double *lb, *ub, *xmin;
16
double minf;
17
const char *name;
18
} testfunc;
19
20
#define NTESTFUNCS 22
21
extern const testfunc testfuncs[NTESTFUNCS];
22
23
extern int testfuncs_verbose;
24
extern int testfuncs_counter;
25
26
#ifdef __cplusplus
27
} /* extern "C" */
28
#endif /* __cplusplus */
29
#endif