Function PGASetRandomInitFlag

Function Documentation

void PGASetRandomInitFlag(PGAContext *ctx, int flag)

A boolean flag to indicate whether to randomly initialize alleles.

Description

Legal values are PGA_TRUE and PGA_FALSE. Default is PGA_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