Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 python 中有一个(基于代理的)模拟。结果是随机的。我想校准模拟以最小化平方距离的总和。有哪些 Python 算法可用于最小化随机模拟?
不知道更多,例如“距离”是如何计算的?我只能给出一般性建议。我建议使用 scipy 的优化模块。根据总和是标量还是向量,您可以使用不同的优化器。
如果您不熟悉不同的优化方法,我建议您阅读此简要概述。