-
新型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
-
曲线提取与链码匹配
输入影像的初始边缘二值图像,程序会自动进行边缘曲线的提取的断开,并自动实现曲线的匹配。
- 2022-07-02 12:32:40下载
- 积分:1
-
this Runge
这事龙格-库塔解围分方程算法实例-this Runge- Kutta raise siege equation algorithm examples
- 2023-03-24 13:25:03下载
- 积分:1
-
s 变换的vc++源程序代码,需要用到fftw函数库
s 变换的vc++源程序代码,需要用到fftw函数库-s Transform vc++ source code necessary to use fftw library
- 2022-08-06 01:13:32下载
- 积分:1
-
Towers of Hanoi
河内塔算法的应用。
- 2022-01-24 18:47:57下载
- 积分:1
-
数值分析的几种典型算法
数值分析的几种典型算法-numerical analysis of several typical algorithm
- 2022-03-03 21:34:19下载
- 积分:1
-
讯号的算法 (消除 cfg 桩中的左的递归)
分配订购 A1 ;:::;对 nonterminals 的语法。
我: = 1 到 n 做开始为 j: = 1 到 1 做开始为每个窗体 Ai 的生产 !Aj做开始删除 Ai !Aj从每个生产的形式 Aj 的语法 !做开始添加 Ai !端端端的语法变换 Ai-生产,消除直接左的递归结束
- 2022-03-14 05:20:50下载
- 积分:1
-
复数据快速傅立叶变换算法
复数据快速傅立叶变换算法-Minute Data Fast Fourier Transform algorithm
- 2022-03-04 07:52:44下载
- 积分:1
-
三次样条插值逼近函数
三次样条插值逼近函数-cubic spline interpolation function approximation
- 2023-07-23 15:30:03下载
- 积分:1
-
排队系统
//#include"stdafx.h"
#include < stdio.h >
#include < tchar.h >
#include < iostream >
使用命名空间 std ;
int main)
{
////////////////////////////////////////////////////////
/ / 初始化变量 / /
int n = 0,n1 = 0 ;/ / 没有。就业机会
int maxLength = 0 ;/ / 最大长度队列。
浮
- 2023-01-13 23:05:03下载
- 积分:1