EnglishFrenchSpanish

OnWorks favicon

PGASetFitnessType - Online in the Cloud

Run PGASetFitnessType in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command PGASetFitnessType 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


PGASetFitnessType - Set the type of fitness algorithm to use.

DESCRIPTION


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

SYNOPSIS


#include "pgapack.h"
void PGASetFitnessType(ctx, fitness_type)
PGAContext *ctx
int fitness_type

LOCATION


fitness.c

EXAMPLE


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

05/01/95 PGASetFitnessType(1)

Use PGASetFitnessType online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

Linux commands

Ad