PGASetIntegerInitPermute(2)

PGASetIntegerInitPermute2

Sets a flag to tell the initialization routines to set each integer-valued gene to a random permutation of the values given by an upper and lower bound.

Usage

#include "pgapack.h"
void  PGASetIntegerInitPermute(ctx, min, max)
PGAContext *ctx
int min
int max

Overview

The length of the interval must be the same as the string length. This is the default strategy for initializing integer-valued strings. The default interval is [0,L-1] where L is the string length. No string initialization is done by this call.

Input parameters

ctx

- context variable

min

- the lower bound of numbers used in the permutation

max

- the upper bound of numbers used in the permutation

Output parameters

none

Location

integer.c

Examples

Set the initialization routines to set each gene to a random and
unique value from the interval $[500,599]$.
PGAContext *ctx;
:
PGASetIntegerInitPermute(ctx, 500, 599)}

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.