ga4robot
类 Config
java.lang.Object
ga4robot.Config
public class Config
- extends java.lang.Object
配置文件
从类 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