|
EvolvingObjects
|
Binary flight for particle swarm optimization based on the sigmoid function. More...
#include <eoSigBinaryFlight.h>
Public Member Functions | |
| eoSigBinaryFlight () | |
| Constructor. | |
| eoSigBinaryFlight (unsigned _slope) | |
| double | sigmoid (double _value) |
| Sigmoid function. | |
| void | operator() (POT &_po) |
| Apply the sigmoid binary flight to a particle. | |
Private Attributes | |
| unsigned | slope |
Binary flight for particle swarm optimization based on the sigmoid function.
Velocities are expected to be "double" Consider Pi to be the i-th position of a particle and Vi to be the i-th velocity of the same particle : if rand[0;1] < sig(Vi) (Vi <=> double) Pi=1 else Pi=0
Definition at line 45 of file eoSigBinaryFlight.h.