PGASetFitnessType(1)

PGASetFitnessType1

Set the type of fitness algorithm to use.

Usage

void PGASetFitnessType(ctx, fitness_type)

PGAContext *ctx

int fitness_type

Overview

Valid choices are PGA_FITNESS_RAW, PGA_FITNESS_NORMAL, or PGA_FITNESS_RANKING for raw fitness (the evaluation function value), linear normalization, or linear ranking, respectively. The default is PGA_FITNESS_RAW.

Input parameters

ctx

- context variable

fitness_type

- symbolic constant to specify fitness type

Output parameters

none

Location

fitness.c

Examples

Example:
PGAContext *ctx;
:
PGASetFitnessType(ctx, PGA_FITNESS_RANKING);

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.