ga4robot
类 Config

java.lang.Object
  继承者 ga4robot.Config

public class Config
extends java.lang.Object

配置文件


构造方法摘要
Config()
          配置构造函数
 
方法摘要
 double getCrossoverPossible()
           
 int getGeneCount()
           
 int getGenerationCount()
           
 int getMaxEqualsCount()
           
 int getMaxGenes()
           
 double getMutationPossible()
           
 int getPopulation()
           
static void init()
          初始化
static Config singlation()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Config

public Config()
       throws java.io.IOException
配置构造函数

抛出:
java.io.IOException
方法详细信息

init

public static void init()
                 throws java.io.IOException
初始化

抛出:
java.io.IOException

getGenerationCount

public int getGenerationCount()
返回:
子代数量

getMaxEqualsCount

public int getMaxEqualsCount()
返回:
可能最优解稳定次数

getPopulation

public int getPopulation()
返回:
种群数量

getGeneCount

public int getGeneCount()
返回:
基因位数

getCrossoverPossible

public double getCrossoverPossible()
返回:
交叉概率

getMutationPossible

public double getMutationPossible()
返回:
变异概率

getMaxGenes

public int getMaxGenes()
返回:
每基因位可选最大基因数

singlation

public static Config singlation()
                         throws java.io.IOException
抛出:
java.io.IOException