Unix and Linux Discussions Tagged with pop |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
3,766 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,409 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
2 |
4,748 |
Homework & Coursework Questions |
|
|
|
0 |
1,053 |
Software Releases - RSS News |
|
|
|
0 |
3,358 |
Debian |
|
|
|
1 |
2,921 |
IP Networking |
|
|
|
1 |
9,000 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,449 |
Solaris |
|
|
|
6 |
10,799 |
Web Development |
|
|
|
0 |
819 |
Software Releases - RSS News |
|
|
|
3 |
2,433 |
Shell Programming and Scripting |
|
|
|
0 |
667 |
Software Releases - RSS News |
|
|
|
0 |
779 |
Software Releases - RSS News |
|
|
|
2 |
3,321 |
UNIX and Linux Applications |
|
|
|
2 |
3,413 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
784 |
Software Releases - RSS News |
|
|
|
0 |
1,161 |
Software Releases - RSS News |
|
|
|
0 |
921 |
Software Releases - RSS News |
|
|
|
1 |
3,849 |
Programming |
|
|
|
0 |
1,015 |
Software Releases - RSS News |
|
|
|
0 |
1,044 |
Software Releases - RSS News |
|
|
|
3 |
3,822 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,959 |
Shell Programming and Scripting |
|
|
|
6 |
10,567 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,405 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,791 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,036 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,591 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,179 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,791 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,870 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,997 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,698 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,560 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,038 |
UNIX for Dummies Questions & Answers |
PGAEvaluate(1) PGAPack PGAEvaluate(1)
NAME
PGAEvaluate - Calls a user-specified function to return an evaluation of each string in the population.
DESCRIPTION
The user-specified function is only called if the string has been changed (e.g., by crossover or mutation) or the user has explicitly sig-
naled the string's evaluation is out-of-date by a call to PGASetEvaluationUpToDateFlag().
INPUT PARAMETERS
ctx - context variable
pop - symbolic constant of the population to be evaluated
f - a pointer to a function to evaluate a string. This function will be called once for each string in population pop that requires
evaluation. This function must return a double (the evaluation function value) and must fit the prototype double f(PGAContext *c,
int p, int pop);
comm - an MPI communicator
OUTPUT PARAMETERS
none
SYNOPSIS
#include "pgapack.h"
void PGAEvaluate(ctx, pop, , comm)
PGAContext *ctx
int pop
double (*f)(PGAContext *, int, int)
MPI_Comm comm
LOCATION
parallel.c
EXAMPLE
Example:
Evaluate all strings in population PGA_NEWPOP using the user-defined
evaluation function Energy.
double Energy(PGAContext *ctx, int p, int pop) {
:
};
PGAContext *ctx;
:
PGAEvaluate(ctx, PGA_NEWPOP, Energy, MPI_COMM_WORLD);
05/01/95 PGAEvaluate(1)