Function PGABinaryInitString

Function Documentation

void PGABinaryInitString(PGAContext *ctx, int p, int pop)

Randomly initialize a string of the binary data type.

Description

Note that this function is set in PGASetUp() as the init string user function for the binary datatype by default.

Example

PGAContext *ctx;
int p;

...
PGABinaryInitString (ctx, p, PGA_NEWPOP);

Parameters
  • ctx – context variable

  • p – index of string to randomly initialize

  • pop – symbolic constant of the population string p is in

Returns

None