PGASetIntegerInitPermute3
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. 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.
Usage
#include "pgapack.h" void PGASetIntegerInitPermute(ctx, min, max) PGAContext *ctx int min int max
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
8 releases since Debian 1.1 (Buzz); the text changed 1 time.