Function PGARealCopyString
Defined in File real.c
Function Documentation
-
void PGARealCopyString(PGAContext *ctx, int p1, int pop1, int p2, int pop2)
Copy one real-valued string string to another.
Description
Note that this function is set in
PGASetUp()as the copy string user function for the real datatype by default.Example
Copy string
xin old population toyin new population.PGAContext *ctx; int x, y; ... PGARealCopyString (ctx, x, PGA_OLDPOP, y, PGA_NEWPOP);
- Parameters:
ctx – context variable
p1 – string to copy
pop1 – symbolic constant of population containing string p1
p2 – string to copy p1 to
pop2 – symbolic constant of population containing string p2
- Returns:
String p2 in population pop2 is modified to be a copy of string p1 in population pop1.