Last change
on this file since 815 was
815,
checked in by liveletlive, 17 years ago
|
Committing the /tmp/gekco/pgapack folder that contains the older PGAPack version and Prof. Klimecks changes to it.
|
File size:
877 bytes
|
Line | |
---|
1 | .TH PGAGetMutationType 3 "05/01/95" " " "PGAPack" |
---|
2 | .SH NAME |
---|
3 | PGAGetMutationType \- Returns the type of mutation used |
---|
4 | .SH INPUT PARAMETERS |
---|
5 | .PD 0 |
---|
6 | .TP |
---|
7 | ctx |
---|
8 | - context variable |
---|
9 | .PD 1 |
---|
10 | .SH OUTPUT PARAMETERS |
---|
11 | .PD 0 |
---|
12 | .TP |
---|
13 | none |
---|
14 | |
---|
15 | .PD 1 |
---|
16 | .SH SYNOPSIS |
---|
17 | .nf |
---|
18 | #include "pgapack.h" |
---|
19 | int PGAGetMutationType(ctx) |
---|
20 | PGAContext *ctx |
---|
21 | .fi |
---|
22 | .SH LOCATION |
---|
23 | mutation.c |
---|
24 | .SH EXAMPLE |
---|
25 | .nf |
---|
26 | Example: |
---|
27 | PGAContext *ctx; |
---|
28 | int mutatetype; |
---|
29 | : |
---|
30 | mutatetype = PGAGetMutationType(ctx); |
---|
31 | switch (mutatetype) { |
---|
32 | case PGA_MUTATION_CONSTANT: |
---|
33 | printf("Mutation Type = PGA_MUTATION_CONSTANT\n"); |
---|
34 | break; |
---|
35 | case PGA_MUTATION_RANGE: |
---|
36 | printf("Mutation Type = PGA_MUTATION_RANGE\n"); |
---|
37 | break; |
---|
38 | case PGA_MUTATION_UNIFORM: |
---|
39 | printf("Mutation Type = PGA_MUTATION_UNIFORM\n"); |
---|
40 | break; |
---|
41 | case PGA_MUTATION_GAUSSIAN: |
---|
42 | printf("Mutation Type = PGA_MUTATION_GAUSSIAN\n"); |
---|
43 | break; |
---|
44 | case PGA_MUTATION_PERMUTE: |
---|
45 | printf("Mutation Type = PGA_MUTATION_PERMUTE\n"); |
---|
46 | break; |
---|
47 | } |
---|
48 | |
---|
49 | .fi |
---|
Note: See
TracBrowser
for help on using the repository browser.