Function PGACharacterInitString
Defined in File char.c
Function Documentation
-
void PGACharacterInitString(PGAContext *ctx, int p, int pop)
Randomly initialize a string of type character.
Description
Note that this function is set in
PGASetUp()
as the init string user function for the char datatype by default.Example
PGAContext *ctx; int p; ... PGACharacterInitString (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
None