Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pgaevaluate(1) [debian man page]

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)

Check Out this Related Man Page

PGASetRealInitPercent(2)					      PGAPack						  PGASetRealInitPercent(2)

NAME
PGASetRealInitPercent - sets the upper and lower bounds for randomly initializing real-valued genes. DESCRIPTION
For each gene these bounds define an interval from which the initial allele value is selected uniformly randomly. With this routine the user specifies a median value and a percent offset for each allele. INPUT PARAMETERS
ctx - context variable median - an array containing the mean value of the interval percent - an array containing the percent offset to add and subtract to the median to define the interval OUTPUT PARAMETERS
none SYNOPSIS
#include "pgapack.h" void PGASetRealInitPercent(ctx, median, percent) PGAContext *ctx double *median double *percent LOCATION
real.c EXAMPLE
Set the initialization routines to select a value for each real-valued gene i uniformly randomly from the interval [i-v,i+v], where $v = i/2$. Assumes all strings are the same length. PGAContext *ctx; double *median, *percent; int i, stringlen; : stringlen = PGAGetStringLength(ctx); median = (double *) malloc(stringlen*sizeof(double)); percent = (double *) malloc(stringlen*sizeof(double)); for(i=0;i<stringlen;i++) { median[i] = (double) i; percent[i] = 0.5; } PGASetRealInitPercent(ctx, median, percent); 05/01/95 PGASetRealInitPercent(2)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

pop

Dear guys , I have Sun mail server ( unix 5.7 ) , I configured the sendmail on it , and it is working fine . i was checking ( smtp and pop ) on it . for smtp , i telnet IP address of server on port 25 and i got a reply . for pop , i telnet IP of server on port 110 and i got the follwoing... (3 Replies)
Discussion started by: tamemi
3 Replies

2. AIX

HACMP pop quiz

Hi all, A pop quiz is being organized in my project and I've been appointed as one of the quiz-masters. This is a sample of what we are bringing forth. Feedback is welcome. 1)Name 2 commands used to display cluster state, but doesn't use the clinfoES daemon: a) ... (0 Replies)
Discussion started by: themetalingus
0 Replies

3. UNIX for Dummies Questions & Answers

rsh pop up

Hi All I am using Rsh (i know yuk, but i have know choice) i would like a way to know if someone has RSH'd into my machine, some sort of pop up box maybe?? thanks (0 Replies)
Discussion started by: ab52
0 Replies

4. Cybersecurity

iptables latency evaluation

Hello guys, I'm actually working on my master thesis which has for subject the evaluation of virtual firewall in a cloud environment. To do so, I installed my own cloud using OpenNebula (as a frontend) and Xen (as a Node) on two different machines. The Xen machine is my virtual firewall thanks... (2 Replies)
Discussion started by: Slaughterman
2 Replies