Query: pgarestart
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGARestart(3) PGAPack PGARestart(3)NAMEPGARestart - reseeds a population from the best stringINPUT PARAMETERSval - the probability of changing an allele when copying the best string to the new population source_pop - the source population dest_pop - symbolic constant of the destination populationOUTPUT PARAMETERSside -effect.SYNOPSIS#include "pgapack.h" void PGARestart(ctx, source_pop, dest_pop) PGAContext *ctx int source_pop int dest_popLOCATIONrestart.cEXAMPLEPerform an unspecified test to determine if the current evolution is not evolving fast enough, and if so, restart the evolution. PGAContext *ctx; PGAEvaluateMS(ctx, PGA_OLDPOP, f, comm); PGAFitness (ctx, PGA_OLDPOP); } : if (StagnantEvolution()) { PGARestart(ctx, PGA_OLDPOP, PGA_NEWPOP); PGAEvaluate(ctx, PGA_NEWPOP, EvalFunc); PGAUpdateGeneration(ctx); } 05/01/95 PGARestart(3)