Function PGASetRandomInitFlag
Defined in File create.c
Function Documentation
-
void PGASetRandomInitFlag(PGAContext *ctx, int flag)
A boolean flag to indicate whether to randomly initialize alleles.
Description
Legal values are
PGA_TRUEandPGA_FALSE. Default isPGA_TRUE: randomly initialize alleles.Example
Set the initialization routine to initialize all alleles to zero:
PGAContext *ctx; ... PGASetRandomInitFlag (ctx,PGA_FALSE);
- Parameters:
ctx – context variable
flag – indicates whether random initialization should be performed
- Returns:
None