Query: pgacreate
OS: debian
Section: 8
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGACreate(8) PGAPack PGACreate(8)NAMEPGACreate - creates an uninitialized context variable. The Fortran version of this function call contains only the last three argumentsINPUT PARAMETERSargc - address of the count of the number of command line arguments. argv - array of command line arguments. datatype - the data type used for the strings. Must be one of PGA_DATATYPE_BINARY, PGA_DATATYPE_CHARACTER, PGA_DATATYPE_INTEGER, PGA_DATATYPE_REAL, or PGA_DATATYPE_USER binary -valued, character-valued, integer-valued, real -valued, or a user-defined datatype, respectively. len - the string length (number of genes). maxormin - the direction of optimization. Must be one of PGA_MAXIMIZE or PGA_MINIMIZE for maximization or minimization, respectively.OUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" PGAContext * PGACreate(argc, argv, datatype, len, maxormin) int *argc char **argv int datatype int len int maxorminLOCATIONcreate.cEXAMPLEExample: In C: void main(int argc, char **argv) { PGAContext *ctx; : ctx = PGACreate(&argc, argv, PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE); : // Set options here : PGASetUp(ctx); : // Run the GA here : PGADestroy(ctx); } In FORTRAN: integer ctx : ctx = PGACreate(PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE) : c Set options here : call PGASetUp(ctx) : c Run the GA here : call PGADestroy(ctx) stop end 05/01/95 PGACreate(8)
Related Man Pages |
---|
pgasetintegerinitrange(2) - debian |
pgasetrealinitrange(2) - debian |
pgadebugprint(3) - debian |
pgasetuserfunction(8) - debian |
dtdtsdatatypetoattributevalue(3) - hpux |
Similar Topics in the Unix Linux Community |
---|
echo help |
moving directory |
command line arguments |
The Ampersand |
help for argv argc |