【源码】在线单纯形搜索的Nelder-Mead优化仿真

介绍了一种可重入的在线单纯形搜索算法实现,该算法基于Nelder-Mead优化算法,适用于在线环境下优化问题的求解。通过使用持久变量,算法能够记住先前顶点的代价,从而在评估新样本顶点时进行高效计算。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在线单纯形搜索是著名的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.


完整源码下载请点击“阅读原文”

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值