Compute fitness and cache the result data in this pool.
GeneralFitnessPool
00 Remarks
works for genetic algorithm and DifferentialEvolution
Type Parameters
| Name | Description |
|---|---|
Individual |
01 Syntax
Microsoft.VisualBasic.MachineLearning.Darwinism.Models.GeneralFitnessPool`1
02 Methods
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Cacheable | 1 | |
| evaluateFitness | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| cache | 1 | A fitness cache pool indexed via the unique id of target |
05 Members
Parameters
| Name | Type | Description |
|---|---|---|
cacl | Fitness(Of `0) | Expression for descript how to calculate the fitness. |
Fitness(
`0, Boolean)This function tells how well given individual performs at given problem.
Parameters
| Name | Type | Description |
|---|---|---|
[in] | `0 | - |
Clear
Clear all cache data.
cache
A fitness cache pool indexed via the unique id of target
Cacheable
evaluateFitness