Function PGASetCharacterInitType

Function Documentation

void PGASetCharacterInitType(PGAContext *ctx, int value)

Sets a flag to specify whether the character strings will be exclusively lowercase, exclusively uppercase, or a mixure of both cases.

Description

Legal flags are PGA_CINIT_UPPER, PGA_CINIT_LOWER, and PGA_CINIT_MIXED. Default is PGA_CINIT_LOWER. See Constants for Random Initialization of Genes for the constants and section Initialization of the user guide for details.

Example

Set program to generate exclusively uppercase letters.

PGAContext *ctx;

...
PGASetCharacterInitType (ctx, PGA_CINIT_UPPER);

Parameters
  • ctx – context variable

  • value – symbolic constant specifying which case

Returns

None