source: trunk/optimizer/src/pgapack/gekco/pgapack/man/man8/PGACreate.8 @ 815

Last change on this file since 815 was 815, checked in by liveletlive, 16 years ago

Committing the /tmp/gekco/pgapack folder that contains the older PGAPack version and Prof. Klimecks changes to it.

File size: 1.5 KB
Line 
1.TH PGACreate 8 "05/01/95" " " "PGAPack"
2.SH NAME
3PGACreate \- creates an uninitialized context variable.  The Fortran version
4of this function call contains only the last three arguments
5.SH INPUT PARAMETERS
6.PD 0
7.TP
8argc
9- address of the count of the number of command line arguments.
10.PD 0
11.TP
12argv
13- array of command line arguments.
14.PD 0
15.TP
16datatype
17- the data type used for the strings.  Must be one of
18PGA_DATATYPE_BINARY, PGA_DATATYPE_CHARACTER,
19PGA_DATATYPE_INTEGER, PGA_DATATYPE_REAL, or PGA_DATATYPE_USER
20.PD 0
21.TP
22binary
23-valued, character-valued, integer-valued,
24.PD 0
25.TP
26real
27-valued, or a user-defined datatype, respectively.
28.PD 0
29.TP
30len
31- the string length (number of genes).
32.PD 0
33.TP
34maxormin
35- the direction of optimization. Must be one of PGA_MAXIMIZE or
36PGA_MINIMIZE for maximization or minimization, respectively.
37.PD 1
38.SH OUTPUT PARAMETERS
39.PD 0
40.TP
41none
42
43.PD 1
44.SH SYNOPSIS
45.nf
46#include "pgapack.h"
47PGAContext * PGACreate(argc, argv, datatype, len, maxormin)
48int *argc
49char **argv
50int datatype
51int len
52int maxormin
53.fi
54.SH LOCATION
55create.c
56.SH EXAMPLE
57.nf
58Example:
59
60In C:
61void main(int argc, char **argv) {
62PGAContext *ctx;
63:
64ctx = PGACreate(&argc, argv, PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE);
65:
66//  Set options here
67:
68PGASetUp(ctx);
69:
70//  Run the GA here
71:
72PGADestroy(ctx);
73}
74
75In FORTRAN:
76integer ctx
77:
78ctx = PGACreate(PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE)
79:
80c       Set options here
81:
82call PGASetUp(ctx)
83:
84c       Run the GA here
85:
86call PGADestroy(ctx)
87stop
88end
89
90.fi
Note: See TracBrowser for help on using the repository browser.