-
新型GA算法
一种好的改进遗传算法function [opy,optimy]=GA(pt,gennum,psize)% 输入参数:% pt m*n的加工时间矩阵(n是工件数目,m是机器数目)由已知给的T矩阵,可得n=100,m=10% gennum 迭代的次数(代数)% psize 种群的规模大小%输出参数:% opy 最优的Makespan值pc=0.9;%交叉因子pm=0.1;%变异因子[m,n]=size(pt);current_gen=1;%current_gen means the current generationnewgen=zeros(psize,n+1); %mewgen is the new generation of the populationnewgen(1:psize,1:n)=rand(psize,n);%主种群初始化,0-1之间的随机数 %Generalize the initial groupfather=zeros(2,n); %father is used to store the two genes for crossover and mutation avgen=zeros(1,gennum); %avgen is the matrix of the average of all the generationsoptimx=zeros(1,n);optimy=ones(1,gennum);%Generalize the initial groupfor i=1:psize [Ya,pop(i,1:n)]=sort(newgen(i,1:n));%种群排序,实数编码转换为自然数编码 随机生成的0-1之间的小数进行排序然后取每个从小到大数对应的位置 newg
- 2022-03-18 14:25:18下载
- 积分:1
-
南理工硕博上机题经典36题
从历年南理工硕博上机题中选出具有代表性的36题,让你提前熟悉南理工硕博上机。南理工硕博上机占60分,面试40分。所以如果想保硕博的话,上机是很重要的
- 2022-07-23 03:35:57下载
- 积分:1
-
对散射函数值的角度计算Mie散射过程,日…
计算mie散射过程中的角度散射函数的值,对研究粒子散射有很大帮助-Mie scattering process of calculating the angle of scattering function value, the study of particle scattering are very helpful
- 2022-09-07 09:30:03下载
- 积分:1
-
用C++写改进的欧拉法 计算方法上机实验
用C++写改进的欧拉法 计算方法上机实验-C write Improved Euler method for experimental methods
- 2022-04-09 19:25:40下载
- 积分:1
-
链表的bubble,insertion, selection排序法
链表的bubble,insertion, selection排序法-Bubble,insertion, selection sort of list
- 2022-05-26 05:23:49下载
- 积分:1
-
科学与工程数值算法用到的积分类
科学与工程数值算法用到的积分类-science and engineering numerical algorithm used in the integration category
- 2022-02-21 19:32:31下载
- 积分:1
-
c拉格朗日插值函数
c拉格朗日插值函数-c Lagrange interpolation function
- 2022-04-15 11:31:47下载
- 积分:1
-
java外部排序与内存排序
生成一个具有10,000,000个记录的文本文件,其中每个记录由100个字节组成。实验只考虑记录的一个属性A,假定A为整数类型。记录在block上封装时,采用non-spanned方式,即块上小于一个记录的空间不使用。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-01 01:23:44下载
- 积分:1
-
链表逆置cpp代码
利用辅助指针 基本思想:在遍历结点过程中,设置辅助指针,用于记录先前遍历的结点。这样依次编译的过程中只需修改其后继结点的next域即可
- 2022-02-21 23:53:38下载
- 积分:1
-
禁忌搜索法对初始解、邻域个数及禁忌列表的大小等参数有比较严格的要求, 这些参数直接影响着算法的优化能
力。文章提出了一种改进的禁忌搜索法, 它用有效空间来压...
禁忌搜索法对初始解、邻域个数及禁忌列表的大小等参数有比较严格的要求, 这些参数直接影响着算法的优化能
力。文章提出了一种改进的禁忌搜索法, 它用有效空间来压缩搜索范围, 这样可以提高搜索效率和全局搜索能力。用短期
和长期禁忌列表存储器来保证算法能搜索到全局空间的每一点, 并且不重复搜索。经过验算和分析, 证明它是一种较好的
全局启发式搜索法-Tabu search method, the initial solution, neighborhood and tabu list size of the number of parameters such as have more stringent requirements, these parameters directly affect the ability to optimize the algorithm. This paper presents an improved tabu search method, it is used effectively to compress the search space, so that can improve search efficiency and global search capabilities. Short-term and long-term memory tabu list to ensure the algorithm to search to the global space, each point, and do not repeat the search. After checking and analysis, to prove that it is a good global heuristic search method
- 2022-04-06 20:06:04下载
- 积分:1