搜索资源列表
immunity
- 提供一个人工免疫算法源程序,其算法过程包括: 1.设置各参数 2.随机产生初始群体——pop=initpop(popsize,chromlength) 3.故障类型编码,每一行为一种!code(1,:),正常;code(2,:),50%;code(3,:),150%。实际故障测得数据编码,这里Unnoralcode,188% 4.开始迭代(M次): 1)计算目标函数值:欧氏距离[objvalue]=calobjvalue(pop,i) 2)计算群体中
GAdownload
- 遗传求解求解一元二次方程的解源程序(下载点击GAdownload.c) 说明: 1 popu变量表示群体规模 2 L变量表示染色体的长度 3 pc,pm变量分别代表是交叉概率和变异概率 4 gen是迭代的代数 4 chromosome是一个全局的二维数组,里面存放的是个体的编码 5 程序最后的执行结果输出到了text.txt文本文件中-genetic solving quadratic equation to solve one yuan source solutio
ga-SIMPLE
- /求下列元素的最大值:目标函数max=f(x1,x2)=x1*x1+x2*x2 取值范围在{1,2,3,4,5,6,7} //本算法在选择时使用:轮盘赌选择法、交叉时使用:单点交叉。 -A maximum of the following elements: objective function Max = f (x1, x2) x1+ x2 = x1** x2.Scope in,2,3,4,5,6,7 {1}This algorithm is used when the choice
the-problem-of-evangelist-and-savage
- 有3个传教士和3个野人要过河,现在有一条船只能承载2个人(包括野人),在任何时刻,如果有野人和传教士在一起,必须要求传教士的人数多于或等于野人的人数。 -There are three missionaries and three savages to cross the river, and now a vessel can carry two people (including savages), at any moment, if there are savages and mission
FacialExpressionClassification
- 1. 使用matlab自带的人脸识别工具(Viola-Jones算法)找出人脸的位置,并裁剪出人脸区域。 2. 使用Gabor滤波器识别出人脸的局部特征及纹理。 3. 训练一个SVM进行表情分类。 4. 交叉验证得到表情分类正确率为83.3 。 操作说明和系统描述请见ReadMe.-1. Using matlab with face detection tool (Viola-Jones algorithm) to find the location of a human
GA-BP
- 算法基本要素: 1.染色体编码方法 2.适应度函数 3.遗传操作—-(选择、交叉、变异) 4.运行参数—(参数:群体大小M、遗传代数G、交叉概率Pc和变异概率Pm)(Basic elements of algorithm: 1. chromosome coding method 2. fitness function 3. - the genetic operation (selection, crossover and mutation) 4. operating pa