搜索资源列表
square_lattice_circular_air
- 这个程序可以用于四方晶格光子晶体空气孔柱的能带计算。给出了解析的折射率分布 u1=[1,0,0] u2=[0,1,0] u3=[0,0,1] -This code can be used in band structure of photonic crystal. It give out the dielectric distribution of circular air holes.
square_lattice_circular_dielectric
- 这个程序可以用于四方晶格光子晶体圆柱的能带计算。给出了解析的折射率分布 u1=[1,0,0] u2=[0,1,0] u3=[0,0,1] -This code can be used in band structure of photonic crystal. It give out the dielectric distribution of circular rods.
tri_lattice_dielectric
- 这个程序可以用于四方晶格光子晶体圆柱的能带计算。给出了解析的折射率分布 u1=[1,0,0] u2=[1/2,sqrt(3)/2,0] u3=[0,0,1] -This code can be used in band structure of photonic crystal. It give out the dielectric distribution of circular rods.
tri_lattice_circular_air
- 这个程序可以用于三角晶格空气孔光子晶体的能带计算。给出了解析的折射率分布 u1=[1,0,0] u2=[1/2,sqrt(3)/2,0] u3=[0,0,1] -This code can be used in band structure of triangular lattice rod photonic crystal. It give out the dielectric distribution of circular air holes.
pinv
- //奇异值分解法求双精度浮点数矩阵的广义逆 //功能:利用奇异值分解求解一般的m×n阶实矩阵A的广义逆A+。 //方法说明:设m×n阶实矩阵A的奇异值分解式为 //其中 Σ = diag(σ0, σ1, ……,σp)(p≤min(m,n) -1 )且σ0≥σ1≥……≥σp>0 //设U = (U1,U2),其中U1为U中前P+1列列正交向量组构成的m×(p+1)矩阵;V = (V1,V2),其中V1为前P+1列//列正交向量组构成的n×(p+1)矩阵。则A的广义逆为: //A
ES
- 1.设定种群个体数和需要迭代的次数。 2.选择父代中的个体按照公式z1=sqrt(-2*ln(u1))*sin(2*pi*u2)*m,z2=sqrt(-2*ln(u1))*cos(2*pi*u2)*m进行演化。 这里u1,u2都是随机值,m是控制因子,演化次数越多m,m越小,父代通过与z1,z2相加得到后代。 3.计算后代的适应性。 4.选择后代中最优的适应性作为全局最优适应性。(1. set the number of individuals in the population and