---
name: "PGASetSelectType"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.1.1-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/PGASetSelectType"
---

# PGASetSelectType(3)

specify the type of selection to use.

## NAME

PGASetSelectType - specify the type of selection to use.

## DESCRIPTION

Valid choices are PGA\_SELECT\_PROPORTIONAL, PGA\_SELECT\_SUS, PGA\_SELECT\_TOURNAMENT, and PGA\_SELECT\_PTOURNAMENT for proportional, stochastic universal selection, tournament, and probabilistic tournament selection, respectively.  The default is PGA\_SELECT\_TOURNAMENT.

## INPUT PARAMETERS

- ctx

  \- context variable

- select\_type

  \- symbolic constant to specify selection type

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetSelectType(ctx, select_type)
PGAContext *ctx
int select_type
```

## LOCATION

select.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGASetSelectType(ctx, PGA_SELECT_SUS);
```
