Unix and Linux Discussions Tagged with pop |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
4,189 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,574 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
2 |
5,042 |
Homework & Coursework Questions |
|
|
|
0 |
1,270 |
Software Releases - RSS News |
|
|
|
0 |
3,614 |
Debian |
|
|
|
1 |
3,059 |
IP Networking |
|
|
|
1 |
9,474 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,560 |
Solaris |
|
|
|
6 |
11,062 |
Web Development |
|
|
|
0 |
870 |
Software Releases - RSS News |
|
|
|
3 |
2,496 |
Shell Programming and Scripting |
|
|
|
0 |
736 |
Software Releases - RSS News |
|
|
|
0 |
844 |
Software Releases - RSS News |
|
|
|
2 |
3,382 |
UNIX and Linux Applications |
|
|
|
2 |
3,629 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
837 |
Software Releases - RSS News |
|
|
|
0 |
1,390 |
Software Releases - RSS News |
|
|
|
0 |
1,121 |
Software Releases - RSS News |
|
|
|
1 |
3,924 |
Programming |
|
|
|
0 |
1,149 |
Software Releases - RSS News |
|
|
|
0 |
1,171 |
Software Releases - RSS News |
|
|
|
3 |
3,973 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,170 |
Shell Programming and Scripting |
|
|
|
6 |
10,738 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,553 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,134 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,269 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,741 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,494 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,108 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,070 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,290 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,003 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,827 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,627 |
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)