NLopt里面的算法

Nlopt包含很多优化算法。NLopt中的每个算法都由命名常量标识,被传入NLopt中。

These constants are mostly of the formNLOPT_{G,L}{N,D}_xxxx, whereG/Ldenotes global/local optimization andN/Ddenotes derivative-free/gradient-based algorithms, respectively.

For example, theNLOPT_LN_COBYLAconstant refers to the COBYLA algorithm (described below), which is a local (L) derivative-free (N) optimization algorithm.

Comparing algorithms这里讲了如何对优化算法进行比较。

下面先列举一下NLopt包含了哪些全局优化算法,哪些局部搜索算法。(列举完之后反思一下该怎么选择优化算法。然后思考一下怎么使用。)

Global optimization

All of the global-optimization algorithms currently require you to specify bound constraints on all the optimization parameters.

Of these algorithms, only ISRES, AGS, and ORIG_DIRECT support 非线性不等式约束, and only ISRES supports 非线性等式约束. 但它们都能与augmented Lagrangian method结合来解决非线性约束问题。

做完全局搜索完之后,最好以全局搜索的结果作为起点,再进行局部搜索。这里的全局搜索算法花很多精力在search parameter space上,而没有特别认真在寻找局部最佳的确切位置。

1 DIRECT and DIRECT-L (Most of the above algorithms only handle bound constraints, and in fact require finite bound constraints (they are not applicable to unconstrained problems). They do not handle arbitrary nonlinear constraints. However, theORIGversions by Gablonsky et al. include some support for arbitrary nonlinear inequality constraints.)

2 Controlled Random Search (CRS) with local mutation (Only bound-constrained problems are supported by this algorithm.)

3 MLSL (Multi-Level Single-Linkage) (Only bound-constrained problems are supported by this algorithm.)

4 StoGO (Only bound-constrained problems are supported by this algorithm.)

5 AGS (AGS can handle arbitrary objectives and nonlinear inequality constraints. Also bound constraints are required for this method. )

6 ISRES (Improved Stochastic Ranking Evolution Strategy) (This method supports arbitrary nonlinear inequality and equality constraints in addition to the bound constraints)

7 ESCH (evolutionary algorithm) (The method supports bound constraints only (no nonlinear constraints))

Local derivative-free optimization

Of these algorithms, only COBYLA currently supports arbitrary nonlinear inequality and equality constraints非线性不等式和等式约束; the rest of them support bound-constrained or unconstrained problems only. (However, any of them can be applied to nonlinearly constrained problems by combining them with theaugmented Lagrangian methodbelow.)

1 COBYLA (Constrained Optimization BY Linear Approximations) (The underlying COBYLA code only supports inequality constraints. Equality constraints are automaticallytransformed into pairsof inequality constraints, which in the case of this algorithm seems not to cause problems.)

2 BOBYQA (BOBYQA performs derivative-free bound-constrained optimization using an iteratively constructed quadratic approximation for the objective function.)

3 NEWUOA + bound constraints (permits efficient handling of bound constraints. This algorithm is largely superseded by BOBYQA (above))

4 PRAXIS (PRincipal AXIS)

5 Nelder-Mead Simplex

6 Sbplx (based on Subplex)

Local gradient-based optimization

Of these algorithms, only MMA and SLSQP support arbitrary nonlinear inequality constraints任意非线性不等式约束, and only SLSQP supports nonlinear equality constraints非线性等式约束; the rest support bound-constrained or unconstrained problems only. (However, any of them can be applied to nonlinearly constrained problems by combining them with theaugmented Lagrangian methodbelow.)

1 MMA (Method of Moving Asymptotes) and CCSA

2 SLSQP (this is a sequential quadratic programming (SQP) algorithm for nonlinearly constrained gradient-based optimization (supporting both inequality and equality constraints))

3 Low-storage BFGS

4 Preconditioned truncated Newton

5 Shifted limited-memory variable-metric

Augmented Lagrangian algorithm

NLopt中有一种算法适合所有上述类别,具体取决于指定的辅助优化算法. This method combines the objective function and the nonlinear inequality/equality constraints (if any) in to a single function.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1 2018年4月7日我家迎来了一只领养的狸花猫弟弟,名字叫姜糖。 它的到来让生活变得更加有趣了,这是关于它的第一...
    爱喵星阅读 403评论 0 0
  • 今天是007不出局交作业的日子,可我的作业还不知道在哪里,脑袋里也没有写什么内容。 最近几天...
    闲吧阅读 228评论 0 0
  • 我们都想进入名牌大学上学,因为想成为未来的精英,但是不管你进入什么大学,现在的大学教育似乎不足以造就精英,依靠大学...
    viper44阅读 107评论 0 0