A function wrapper for calculate genome fitness in current environment.
(描述了如何从将目标染色体计算为fitness,从而能够量化突变带来的的优点)
A function wrapper for calculate genome fitness in current environment.
(描述了如何从将目标染色体计算为fitness,从而能够量化突变带来的的优点)
| Name | Description |
|---|---|
Chr | 这个泛型类型应该是集成至Chromosome,但是为了兼容 |
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Calculate | 1 | Assume that chromosome1 is better than chromosome2 vbnet fit1 = calculate(chromosome1) fit2 = calculate(chromosome2) So the following condition must be true: vbnet fit1… |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Cacheable | 1 | 这个计算模块是否会缓存计算结果? |
04 Members
`0, Boolean)Assume that chromosome1 is better than chromosome2
fit1 = calculate(chromosome1)
fit2 = calculate(chromosome2)
So the following condition must be true:
fit1.compareTo(fit2) <= 0
(假若是并行模式的之下,还要求这个函数是线程安全的)
smaller value is better
| Name | Type | Description |
|---|---|---|
parallel | `0 | 在计算函数的内部是否是应该是并行的? 应该遵循以下的准则:
|
The fitness value of the given chromosome.
这个计算模块是否会缓存计算结果?
the result is cached by the unique id of the target chr
True when the fitness calculation result can be cached, otherwise False.