摘要: 1 # 模拟退火算法求解三十城市TSP问题 2 # 2018-3-21开始求解 3 # yangmingustb@outlook.com 4 5 6 import math 7 import random 8 import datetime 9 10 class SaTSP(object): 11 12 def __init__(self... 阅读全文
posted @ 2018-03-23 20:41 最后的绝地武士 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1 import random 2 from PIL import Image 3 from copy import deepcopy 4 5 6 img_chrome = Image.open('chrome.png') 7 h_chrome = img_chrome.size[1] 8 w_chrome = img_chrome.size[0] 9 ... 阅读全文
posted @ 2018-03-23 19:39 最后的绝地武士 阅读(253) 评论(0) 推荐(0) 编辑