Unix and Linux Discussions Tagged with pop |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
3,670 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,334 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
2 |
4,693 |
Homework & Coursework Questions |
|
|
|
0 |
1,017 |
Software Releases - RSS News |
|
|
|
0 |
3,318 |
Debian |
|
|
|
1 |
2,889 |
IP Networking |
|
|
|
1 |
8,907 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,408 |
Solaris |
|
|
|
6 |
10,748 |
Web Development |
|
|
|
0 |
815 |
Software Releases - RSS News |
|
|
|
3 |
2,420 |
Shell Programming and Scripting |
|
|
|
0 |
664 |
Software Releases - RSS News |
|
|
|
0 |
774 |
Software Releases - RSS News |
|
|
|
2 |
3,308 |
UNIX and Linux Applications |
|
|
|
2 |
3,385 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
780 |
Software Releases - RSS News |
|
|
|
0 |
1,152 |
Software Releases - RSS News |
|
|
|
0 |
916 |
Software Releases - RSS News |
|
|
|
1 |
3,836 |
Programming |
|
|
|
0 |
1,010 |
Software Releases - RSS News |
|
|
|
0 |
1,028 |
Software Releases - RSS News |
|
|
|
3 |
3,805 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,871 |
Shell Programming and Scripting |
|
|
|
6 |
10,519 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,370 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,663 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,981 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,572 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,047 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,738 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,804 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,919 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,636 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,512 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,985 |
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)