![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学建模
想想uzi会怎么做7
这个作者很懒,什么都没留下…
展开
-
模拟退火解决TSP问题 python实现
import numpy as np import pandas as pd from matplotlib.animation import FuncAnimation import matplotlib.pyplot as plt class TSP(object): def __init__(self,DistanceMatrix): self.max_T = 100 self.min_T = 0.1 self.T = self.max_T原创 2020-05-27 15:14:17 · 514 阅读 · 0 评论 -
用模拟退火求最优化问题python实现
用模拟退火求解 y = 0.1x*sin(x)的最小值问题 import numpy as np import pandas as pd import math import matplotlib.pyplot as plt import matplotlib.animation as animation class SA(object): def __init__(self, func): self.max_T = 100 self.min_T = 0.002原创 2020-05-26 15:40:52 · 494 阅读 · 0 评论