Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
set_fitness [2011/07/31 21:04] 127.0.0.1 external edit |
set_fitness [2026/08/28 03:34] (current) hermann Sync from local documentation review |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Set Fitness ====== | + | ====== Set Fitness ====== |
| ===== Description ===== | ===== Description ===== | ||
| - | Once the fitness score is calculated, this functor is used to get the fitness score for the current individual and to pass it to the [[Genetic Algorithm Tool|genetic algorithm functor]]. | + | Passes the fitness value calculated for the current individual to the nearest enclosing [[Genetic Algorithm Tool]] container. |
| ===== Inputs ===== | ===== Inputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
| - | | Fitness | [[Double Type|Double]] | Get the fitness score for the current individual. | | + | | Fitness | [[Real Value Type]] | Fitness value calculated for the current individual. | |
| ===== Optional Inputs ===== | ===== Optional Inputs ===== | ||
| + | |||
| + | None. | ||
| ===== Outputs ===== | ===== Outputs ===== | ||
| - | ^ Name ^ Type ^ Description ^ | + | ^ Name ^ Type ^ Description ^ |
| - | | Fitness | [[Double Type| Double]] | Pass the fitness score of the current individual to the genetic algorithm functor. | | + | | Fitness | [[Real Value Type]] | Fitness value calculated for the current individual, passed to the enclosing Genetic Algorithm Tool container. | |
| ===== Group ===== | ===== Group ===== | ||
| Line 23: | Line 25: | ||
| ===== Notes ===== | ===== Notes ===== | ||
| - | ===== Internal Name ===== | + | This functor must be placed inside a Genetic Algorithm Tool. Once the fitness of the current individual has been calculated, this functor reports that value back to the genetic algorithm. |
| + | |||
| + | ===== Internal Name ===== | ||
| SetFitness | SetFitness | ||