-
新型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
-
各种排序算法小结
各种排序算法小结-various sorting algorithm Summary
- 2022-02-20 17:17:33下载
- 积分:1
-
this file need a traffic log in txt format, given the traffic log, it gets the i...
this file need a traffic log in txt format, given the traffic log, it gets the ip address source and destination to perform the IP-lookup following the Huang s algorithm, as result it returns another txt showing the right port and destination ip
- 2023-04-05 05:05:03下载
- 积分:1
-
pid积分温度控制,用于飞思卡尔智能车,比赛使用的。
pid积分温度控制,用于飞思卡尔智能车,比赛使用的。-failed to translate
- 2023-04-10 02:30:03下载
- 积分:1
-
信号傅立叶变换的幅度图和频谱图的示例
信号傅立叶变换的幅度图和频谱图的示例...
信号傅立叶变换的幅度图和频谱图的示例
信号傅立叶变换的幅度图和频谱图的示例-signal Fourier transform spectrum range map and the map of the signal sample rate Fourier Transform map and the map of the sample spectrum
- 2023-04-03 09:35:04下载
- 积分:1
-
快速表达式运算
快速表达式运算 - The fast expression operates
- 2022-10-06 00:55:03下载
- 积分:1
-
MFC的图片浏览器的设计与实现
MFC的图片浏览器的设计与实现
基于
VC++
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-01-25 14:04:27下载
- 积分:1
-
KNN分类器
开发了一个简单的投票K-NN与欧氏距离分类器,输入包括训练数据,测试数据和K值,输出是测试数据的分类结果。
- 2022-04-21 02:47:33下载
- 积分:1
-
使用队列模拟理发馆的排队现象,通过仿真手法评估其营业状况。...
使用队列模拟理发馆的排队现象,通过仿真手法评估其营业状况。-use cohort simulation barber"s shop, the queues, through simulation methods to assess its financial situation.
- 2022-02-05 01:45:57下载
- 积分:1
-
经典的基于vc++的小波滤波程序。很适合作信号处理的朋友
经典的基于vc++的小波滤波程序。很适合作信号处理的朋友-Based on the classic vc++ The wavelet filtering procedure. Very suitable for signal processing Friend
- 2022-01-22 07:03:50下载
- 积分:1