- 博客(7)
- 收藏
- 关注
原创 遗传算法求解带有AGV的FJSP
import randomimport matplotlib.pyplot as pltimport matplotlib.patches as mpatchesimport copyimport numpy as npimport timeclass FJSPwithAGV: def __init__(self, job_machine_time, agv_number, traveltime_for_machine): self.job_machine_time
2021-12-01 19:42:59
814
4
原创 遗传算法求解FJSP问题
工件某工序不能在机器上加工以-1表示,可以的话时间写好输入形式: [ [[5, 8, 11, -1, -1, -1, -1, -1, 9], [-1, -1, -1, 4, 6, 4, -1, -1, -1], [6, -1, -1, -1, 5, -1, -1, 7, -1], [-1, -1, 5, -1, -1, 5, -1, 8, -1], [11, -1, -1, 9, 4, 8, -1, -1, -1]], [[5, 4, -1, -1, .
2021-12-01 19:40:31
1635
7
原创 车间调度遗传算法相关-python
POX交叉import randomdef pox_crossover(code1, code2): random_gens = random.choice(list(set(code1))) # 随机选中一个基因 code11 = [] code12 = [] code21 = [] code22 = [] for i in range(len(code1)): code11.append(code1[i] if code1[i]
2021-11-22 15:22:48
1589
原创 A*算法(python)
最近要用A star算法推荐一个非常直观的学习A算法的网站https://www.redblobgames.com/pathfinding/a-star/introduction.html还有一个各种算法的对比https://github.com/zhm-real/PathPlanning下面是自己写的A算法"""@Date: 2021/11/10@Author:Xmmm0569@Brief: Path Planning:A Star Algorithm"""import numpy
2021-11-10 20:16:41
972
原创 pymssql报错20009,10061
pymssql报错20009,10061 记录一下尝试用python连接SQL Serverpymssql版本 2.2.1 File "src\pymssql\_pymssql.pyx", line 652, in pymssql._pymssql.connectpymssql._pymssql.OperationalError: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Serve
2021-06-03 11:39:37
1396
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人