简体   繁体   English

如果 Python 中的 scipy.optimize.dual_annealing 函数,那么 R 的等价物是什么

[英]What is the R equivalent if the scipy.optimize.dual_annealing function in Python

I am translating some code from Python to R, and am finding it hard to find the corresponding functions in each.我正在将一些代码从 Python 翻译成 R,并且发现很难在每个代码中找到相应的函数。 In this particular case, the code I'm having trouble with is:在这种特殊情况下,我遇到问题的代码是:

output = dual_annealing(
                    residuals_totalcases, x0=parameter_list, bounds=bounds_params
                )

From the scipy.optimize.dual_annealing documentation, I see that the function implements the Dual Annealing optimization.scipy.optimize.dual_annealing文档中,我看到该函数实现了双退火优化。

What packages / functions in R would be equivalent to this? R 中的哪些包/函数与此等效?

From the R documentation I see that there's options with the anneal function in the subselect package , as well as GenSA function in the GenSA package, as well as some others.从R文档,我看到有一个与该选项anneal的功能子查询包,以及GenSA功能在GenSA包,以及一些其他人。

These all seem to use simulated annealing, but no one discusses dual annealing, which python docs describe as " This stochastic approach derived from the generalization of CSA (Classical Simulated Annealing) and FSA (Fast Simulated Annealing) coupled to a strategy for applying a local search on accepted locations. "这些似乎都使用模拟退火,但没有人讨论双重退火,python 文档将其描述为“这种随机方法源自 CSA(经典模拟退火)和 FSA(快速模拟退火)的泛化,耦合到应用局部的策略搜索接受的位置。”

Can anyone offer any clarification?任何人都可以提供任何澄清吗? TIA TIA

It is this package: GenSA: Generalized Simulated Annealing, located at这是这个包:GenSA:广义模拟退火,位于

https://cran.r-project.org/web/packages/GenSA/index.html , with the accompanying paper: https://cran.r-project.org/web/packages/GenSA/index.html以及随附的论文:

Y. Xiang, S. Gubian. Y.Xiang,S. Gubian。 B. Suomela, J. Hoeng (2013). B. Suomela, J. Hoeng (2013)。 Generalized Simulated Annealing for Efficient Global Optimization: the GenSA Package for R. The R Journal, Volume 5/1, June 2013用于高效全局优化的广义模拟退火:R 的 GenSA 包。R 期刊,第 5/1 卷,2013 年 6 月

The scipy documentation references this model as reference #5, saying that they are alternative implementations of each other. scipy 文档将此模型作为参考 #5 引用,说它们是彼此的替代实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM