PGAGetFitness

Langue: en

Version: 256521 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)

NAME

PGAGetFitness - returns the fitness value for a string

INPUT PARAMETERS

ctx
- context variable
p
- string index
pop
- symbolic constant of the population the string is in

OUTPUT PARAMETERS

none

SYNOPSIS

 #include "pgapack.h"
 double  PGAGetFitness(ctx, p, pop)
 PGAContext *ctx
 int p
 int pop
 

LOCATION

fitness.c

EXAMPLE

 Example:
 PGAContext *ctx;
 int p;
 double fit;
 :
 fit = PGAGetFitness(ctx, p, PGA_NEWPOP);