Function PGARunNM

Function Documentation

void PGARunNM(PGAContext *ctx, double (*evaluate)(PGAContext *c, int p, int pop, double *aux), MPI_Comm comm)

Execute a neighborhood model genetic algorithm.

Description

Not yet implemented. Based on ctx->par.topology this routine will need to create the appropriate communicator out of comm.

Example

PGAContext *ctx,
MPI_Comm comm;
double f (PGAContext *ctx, int p, int pop);

...
PGARunNM (ctx, f, comm);

Parameters
  • ctx – context variable

  • evaluate – a pointer to the user’s evaluation function, which must have the calling sequence shown in the example.

  • comm – the MPI communicator to use

Returns

None