Man Page: pgagetsortedpopindex
Operating Environment: debian
Section: 8
PGAGetSortedPopIndex(8) PGAPack PGAGetSortedPopIndex(8)NAMEPGAGetSortedPopIndex - returns a population string index from the array created by PGASortPop().INPUT PARAMETERSctx - context variable n - specified which index element is to be returned.OUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" int PGAGetSortedPopIndex(ctx, n) PGAContext *ctx int nLOCATIONpop.cEXAMPLEExample: Copy the five best strings from the old population into the new population. The rest of the new population will be created by recombination, and is not shown. PGAContext *ctx; int i,j; : PGASetPopReplaceType(ctx,PGA_POPREPL_BEST) PGASortPop(ctx, PGA_OLDPOP); for ( i=0; i < 5; i++) { j = PGAGetSortedPopIndex(ctx, i); PGACopyIndividual (ctx, j, PGA_OLDPOP, i, PGA_NEWPOP); : 05/01/95 PGAGetSortedPopIndex(8)
| Related Man Pages |
|---|
| pgasetrealinitrange(2) - debian |
| pgadebugprint(3) - debian |
| pgaduplicate(8) - debian |
| pgasetuserfunction(8) - debian |
| lwres_conf_parse(3) - centos |
| Similar Topics in the Unix Linux Community |
|---|
| awk or sed - Convert 2 lines to 1 line |
| Is UNIX an open source OS ? |
| Weird 'find' results |
| How to copy a column of multiple files and paste into new excel file (next to column)? |