PGACreate(8)

NAME
PGACreate - creates a context variable. The Fortran version of this function call contains only the last three arguments

INPUT PARAMETERS
argc
    - 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_INTEGER, PGA_DATATYPE_REAL,
binary
    -valued, binary-valued,
binary
    -valued, or user-defined, 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 PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
PGAContext * PGACreate(argc, argv, datatype, len, maxormin)
int *argc
char **argv
int datatype
int len
int maxormin

LOCATION
pga.c

EXAMPLE
Example:
int argc;
char **argv;
PGAContext *ctx;
:
ctx = PGACreate(&argc, argv, PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE);
In Fortran
integer ctx
:
ctx = PGACreate(PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE)