From fc2a254fbf8dff272628c7117bd9ea223a4d5e85 Mon Sep 17 00:00:00 2001 From: stevenj Date: Mon, 1 Sep 2008 02:40:50 -0400 Subject: [PATCH] default to COBYLA rather than subplex for local searches, since the latter doesn't handle bound constraints well darcs-hash:20080901064050-c8de0-29a9cca7bc4ac2beec2976d64c1ed7fea96c97f4.gz --- api/nlopt.c | 2 +- api/nlopt_minimize.3 | 4 ++-- api/nlopt_minimize_constrained.3 | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/nlopt.c b/api/nlopt.c index 554f65b..9109a71 100644 --- a/api/nlopt.c +++ b/api/nlopt.c @@ -234,7 +234,7 @@ static double f_direct(int n, const double *x, int *undefined, void *data_) /* default local-search algorithms */ static nlopt_algorithm local_search_alg_deriv = NLOPT_LD_MMA; -static nlopt_algorithm local_search_alg_nonderiv = NLOPT_LN_SUBPLEX; +static nlopt_algorithm local_search_alg_nonderiv = NLOPT_LN_COBYLA; static int local_search_maxeval = -1; /* no maximum by default */ diff --git a/api/nlopt_minimize.3 b/api/nlopt_minimize.3 index f97d610..b257003 100644 --- a/api/nlopt_minimize.3 +++ b/api/nlopt_minimize.3 @@ -305,9 +305,9 @@ avoid multiple local searches for the same local minimum. The local search uses the derivative/nonderivative algorithm set by .I nlopt_set_local_search_algorithm (currently defaulting to -.I NLOPT_LD_LBFGS +.I NLOPT_LD_MMA and -.I NLOPT_LN_SUBPLEX +.I NLOPT_LN_COBYLA for derivative/nonderivative searches, respectively). There are also two other variants, \fBNLOPT_GD_MLSL\fR and \fBNLOPT_GN_MLSL\fR, which use pseudo-random numbers (instead of an LDS) as in the original MLSL algorithm. diff --git a/api/nlopt_minimize_constrained.3 b/api/nlopt_minimize_constrained.3 index fe34d25..b025d24 100644 --- a/api/nlopt_minimize_constrained.3 +++ b/api/nlopt_minimize_constrained.3 @@ -407,9 +407,9 @@ avoid multiple local searches for the same local minimum. The local search uses the derivative/nonderivative algorithm set by .I nlopt_set_local_search_algorithm (currently defaulting to -.I NLOPT_LD_LBFGS +.I NLOPT_LD_MMA and -.I NLOPT_LN_SUBPLEX +.I NLOPT_LN_COBYLA for derivative/nonderivative searches, respectively). There are also two other variants, \fBNLOPT_GD_MLSL\fR and \fBNLOPT_GN_MLSL\fR, which use pseudo-random numbers (instead of an LDS) as in the original MLSL algorithm. -- 2.30.2