in order to include the C++ libraries (which are used internally by NLopt,
even though it has a C API).
+The minimization function, nlopt_minimize, is described in the man
+page (api/nlopt_minimize.3, which is installed by 'make install'.
+
Interfaces for other languages may be added in the future.
static const char nlopt_algorithm_names[NLOPT_NUM_ALGORITHMS][128] = {
"DIRECT (global)",
+ "DIRECT-L (global)",
"Subplex (local)",
"StoGO (global)",
"Low-storage BFGS (LBFGS) (local)"
switch (algorithm) {
case NLOPT_GLOBAL_DIRECT:
+ case NLOPT_GLOBAL_DIRECT_L:
switch (direct_optimize(f_direct, &d, n, lb, ub, x, fmin,
maxeval, 500, ftol_rel, ftol_abs,
xtol_rel, xtol_rel,
DIRECT_UNKNOWN_FGLOBAL, -1.0,
- NULL, DIRECT_GABLONSKY)) {
+ NULL,
+ algorithm == NLOPT_GLOBAL_DIRECT
+ ? DIRECT_ORIGINAL
+ : DIRECT_GABLONSKY)) {
case DIRECT_INVALID_BOUNDS:
case DIRECT_MAXFEVAL_TOOBIG:
case DIRECT_INVALID_ARGS:
.BI " const double* " "xtol_abs" ,
.BI " int " "maxeval" ,
.BI " double " "maxtime" );
+.sp
+You should link the resulting program with the linker flags
+-lnlopt -lm on Unix.
.fi
.SH DESCRIPTION
.BR nlopt_minimize ()