Vita
Public Member Functions | List of all members
vita::ga::real Class Referencefinal

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ real()

vita::ga::real::real ( range_t< double >  r = {-1000.0, 1000.0},
category_t  i = undefined_category 
)
inlineexplicit

Definition at line 98 of file primitive.h.


The documentation for this class was generated from the following file: