protected int N=999;//种群大小 protected int x[]=new int[N] ;//父代x表现型 protected int y[]=new int[N];//父代y表现型 protected int code_x[][]=new int[N][8];//父代x基因型 protected int code_y[][]=new int[N][8];//父代y基因型 protected double suff[]=new double[N];//个体适应度 protected double ave_suff[]=new double[N];//物种平均适应度 protected double select[]=new double[N];//选择概率 protected double odds[]=new double[N];//积累概率 protected int sele_x[][]=new int[N][8];//遗传x protected int sele_y[][]=new int[N][8];//遗传y protected int loca_x[]=new int[N];//x杂交位 protected int loca_y[]=new int[N];//y杂交位 protected int child_x[][]=new int[N][8];//杂交变异后x子代基因型 protected int child_y[][]=new int[N][8];//杂交变异后y子代基因型 protected int pro_x[]=new int[N];//x子代表现型 protected int pro_y[]=new int[N];//y子代表现型 protected int valu[]=new int[N];//子代函数值 protected int rate=1;//变异位数 protected int temp=0,flag=0,place,sum=0;//中间变量 protected double sum_suff=0.0,r;//中间变量
- zyting10112012-12-12蛮长的Java程序
- 心在彷徨2016-05-19虽然长但是可以运行 写的很吊
- 粉丝: 0
- 资源: 15
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助