Function PGARealInitString
Defined in File real.c
Function Documentation
-
void PGARealInitString(PGAContext *ctx, int p, int pop)
Randomly initialize a string of type real.
Description
Note that this function is set in
PGASetUp()
as the init string user function for the real datatype by default.Example
PGAContext *ctx; int p; ... PGARealInitString (ctx, p, PGA_NEWPOP);
- Parameters:
ctx – context variable
p – index of string to randomly initialize
pop – symbolic constant of the population string p is in
- Returns:
String p in population pop is randomly initialized by side-effect