chiark / gitweb /
f6aac370a329b1a94b1573ed7edfc944a4fe4d0f
[nlopt.git] / mma / mma.h
1 #ifndef MMA_H
2 #define MMA_H
3
4 #include "nlopt.h"
5 #include "nlopt-util.h"
6
7 #ifdef __cplusplus
8 extern "C"
9 {
10 #endif /* __cplusplus */
11
12 extern int mma_verbose;
13
14 nlopt_result mma_minimize(int n, nlopt_func f, void *f_data,
15                           int m, nlopt_func fc,
16                           void *fc_data_, ptrdiff_t fc_datum_size,
17                           const double *lb, const double *ub, /* bounds */
18                           double *x, /* in: initial guess, out: minimizer */
19                           double *minf,
20                           nlopt_stopping *stop,
21                           nlopt_algorithm dual_alg, 
22                           double dual_tolrel, int dual_maxeval);
23
24 #ifdef __cplusplus
25 }  /* extern "C" */
26 #endif /* __cplusplus */
27
28 #endif
29