Scipy优化像Excel Solver这样的python中的最小化

时间:2019-10-10 17:35:00

标签: python scipy

我有从Python中的excel中读取的数据,我在其中进行了一些计算,数据框如下所示:

enter image description here

我的目标是找到使用Scipy Minimize的唯一组合(可以在每一行中使用的Set1和Set 2),从而通过优化查找可能的最小错误总数来使My_cal_spread与Spread尽可能接近。

My_cal_spread = set1 + set2且错误= abs(My_cal_spread-传播)

这是我使用excel解算器得到的,我正在寻找使用Scipy实施相同的解决方案。

enter image description here

0 个答案:

没有答案