在线单纯形搜索是著名的Nelder-Mead优化算法的一种具体实现。
The on-line simplex search is an implementation of the well known Nelder-Mead optimization algorithm.
Matlab中常用的单纯形搜索不适用于在线实现,因为所使用的状态变量不是持久型的,并且算法也没有以可重入的形式实现。
The usual simplex search found in Matlab is not appropriate for an on-line implementation, because the state variables used are not persistent and the algorithm is not implemented to be reentrant.
本源代码的实现方式是可重入的。
The implementation provided here is reentrant.
因此,该算法生成的样本顶点可以输出并进行评估。
Thus, a sample vertex generated by the algorithm can be put out and be evaluated.
当系统固定到被评估的顶点后,可以读取新的代价值,之后,由于持久变量的存在,可以用先前顶点的代价“记忆”重新输入函数进行计算。
After the system has settled to the evaluated vertex a new cost value can be read, after which the function can be reentered with the costs of previous vertices "remembered" due to persistent variables.
完整源码下载请点击“阅读原文”