PGAGetFitness - Online in the Cloud

This is the command PGAGetFitness that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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);

05/01/95 PGAGetFitness(1)

Use PGAGetFitness online using onworks.net services



Latest Linux & Windows online programs