Vita
|
Mainly used for differential evolution. More...
#include <primitive.h>
Inherits vita::ga::detail::number< double >.
Public Member Functions | |
real (range_t< double > r={-1000.0, 1000.0}, category_t i=undefined_category) | |
Mainly used for differential evolution.
While many genetic algorithms use integers to approximate continuous parameters, the choice limits the resolution with which an optimum can be located. Floating point not only uses computer resources efficiently, it also makes input and output transparent for the user. Parameters can be input, manipulated and output as ordinary floating-point numbers without ever being reformatted as genes with a different binary representation.
Definition at line 93 of file primitive.h.
|
inlineexplicit |
Definition at line 98 of file primitive.h.