source: trunk/optimizer/src/pgapack/pgapack/man/man3/PGAGetSelectType.3 @ 816

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

Committing the newer version of PGAPack.

File size: 792 bytes
Line 
1.TH PGAGetSelectType 3 "05/01/95" " " "PGAPack"
2.SH NAME
3PGAGetSelectType \- Returns the type of selection selected
4.SH INPUT PARAMETERS
5.PD 0
6.TP
7ctx
8- context variable
9.PD 1
10.SH OUTPUT PARAMETERS
11.PD 0
12.TP
13none
14
15.PD 1
16.SH SYNOPSIS
17.nf
18#include "pgapack.h"
19int  PGAGetSelectType(ctx)
20PGAContext *ctx
21.fi
22.SH LOCATION
23select.c
24.SH EXAMPLE
25.nf
26Example:
27PGAContext *ctx;
28int selecttype;
29:
30selecttype = PGAGetSelectType(ctx);
31switch (selecttype) {
32case PGA_SELECT_PROPORTIONAL:
33printf("Selection Type = PGA_SELECT_PROPORTIONAL\n");
34break;
35case PGA_SELECT_SUS:
36printf("Selection Type = PGA_SELECT_SUS\n");
37break;
38case PGA_SELECT_TOURNAMENT:
39printf("Selection Type = PGA_SELECT_TOURNAMENT\n");
40break;
41case PGA_SELECT_PTOURNAMENT:
42printf("Selection Type = PGA_SELECT_PTOURNAMENT\n");
43break;
44}
45
46.fi
Note: See TracBrowser for help on using the repository browser.