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

# PGASetUp(8)

set all uninitialized variables to default values and initialize some internal arrays.

## NAME

PGASetUp - set all uninitialized variables to default values and initialize some internal arrays.

## DESCRIPTION

Must be called after PGACreate() and before the GA is started.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetUp(ctx)
PGAContext *ctx
```

## LOCATION

create.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGACreate(ctx, ...);
:
//  Set options here
:
PGASetUp(ctx);
```
