-
新型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
-
RSA 加密算法
RSA 加密算法源程序代码RSA算法原程序及详细注释
- 2022-05-29 10:31:11下载
- 积分:1
-
基于前面上传的变系数的椭圆型方程的例子,来加入移动网格的模块,使得网格能够更加集中于数值解中的弱间断的位置。这个移动网格模块的算法,整个网格的边界和内部将会耦...
基于前面上传的变系数的椭圆型方程的例子,来加入移动网格的模块,使得网格能够更加集中于数值解中的弱间断的位置。这个移动网格模块的算法,整个网格的边界和内部将会耦 合移动,因此,在区域的不同边界上,需要使 用不同的材料标识才能使得程序对每个不同的 边界上的信息加以区分。-Based on the previous upload of the variable coefficient elliptic equations example, to join the moving mesh module, the grid will be more focused on the numerical solution of a weak intermittent position. The moving mesh algorithm module, the entire grid will be the coupling of internal borders and movement, therefore, different from the border region, the need to use different materials in order to make identification procedures for each different borders to distinguish between the information.
- 2022-01-31 22:15:15下载
- 积分:1
-
3D FDTD code for electromagnetic simulation
In the pFDTD, pre-defined, a number of functions helps you to input complex dielectric/metallic
structures by the repeated use of rather simple geometric structures. For example, the later
use of input object functions will take over the overlapped region with the previously defined
structures. In the present pFDTD version, only metals that can be described by simple Drude
model can be handled.
- 2022-04-18 00:45:50下载
- 积分:1
-
fortran guass seidel and overrelaxation
首先从文件夹读取矩阵,通过高斯萨德尔方法求解后使用松弛弛豫法加速,两种方法一起使用后,计算误差,输出值
- 2022-03-04 20:36:15下载
- 积分:1
-
Learnin Mathematics with the ABACUS Activity
Learnin Mathematics with the ABACUS Activity-book
part 7
- 2023-03-07 04:05:04下载
- 积分:1
-
数学变换和滤波fft程序
kfour 傅里叶级数逼近
kkfft 快速傅里叶变换
kkfwt 快速沃什变换
kkspt 快速三次平滑
klm...
数学变换和滤波fft程序
kfour 傅里叶级数逼近
kkfft 快速傅里叶变换
kkfwt 快速沃什变换
kkspt 快速三次平滑
klman 离散随机系统的卡尔曼滤波
kkabg α-β-γ滤波-Fft math transformation and filtering procedures kfour Fourier series approximation kkfft Fast Fourier Transform Fast Walsh Transform kkfwt rapid kkspt three smoothing klman discrete stochastic system Kalman filter kkabg α-β-γ filter
- 2022-03-18 17:19:36下载
- 积分:1
-
FPGA驱动VGA 显示图片
FPGA驱动VGA 显示图片的完整代码,经测试可用,ROM中已经保存有一个图片的rgb信息,大家也可以更改图片,去网上下载一个RGB提取的程序就可以了,把图片rgb信息保存在ROM里-FPGA VGA CODE
- 2022-07-17 03:03:05下载
- 积分:1
-
追赶法解三对角线方程组
追赶法解三对角线方程组-chased three diagonal Solving equations
- 2022-03-25 06:07:16下载
- 积分:1
-
隐式曲面求解的源代码,用户可以输入隐式曲面,得到mxmxm的网格数据...
隐式曲面求解的源代码,用户可以输入隐式曲面,得到mxmxm的网格数据-Implicit surface to solve the source code, users can enter implicit surface, the grid data mxmxm
- 2022-05-17 08:28:55下载
- 积分:1