Function PGASetIntegerAllele
Defined in File integer.c
Function Documentation
-
void PGASetIntegerAllele(PGAContext *ctx, int p, int pop, int i, int val)
Set the value of a (integer) allele.
Example
Set the value of allele
i
of stringp
in populationPGA_NEWPOP
to 64.PGAContext *ctx; int p, i; ... PGASetIntegerAllele (ctx, p, PGA_NEWPOP, i, 64)
- Parameters:
ctx – context variable
p – string index
pop – symbolic constant of the population the string is in
i – allele index
val – integer value to set the allele to
- Returns:
None