Function PGACopyIndividual
Defined in File utility.c
Function Documentation
-
void PGACopyIndividual(PGAContext *ctx, int p1, int pop1, int p2, int pop2)
Copy string p1 in population pop1 to position p2 in population pop2.
Example
PGAContext *ctx; int i, j; ... PGACopyIndividual (ctx, i, PGA_OLDPOP, j, 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 is an exact copy of string p1