- PGASetDebugLevel
-
Turn on a debug level. Only valid if PGAPack
was compiled to include debugging calls. See the user guide for details.
- PGASetDebugLevelByName
-
Turn on debugging of the named function.
- PGASetEvaluation
-
Set the evaluation function value for a string to a
specified value. Also sets the evaulation up to date flag to PGA_TRUE.
- PGASetEvaluationUpToDateFlag
-
sets the flag associated with a
string to PGA_TRUE or PGA_FLASE to indicate whether the evaluate
function value is out-of-date or not. Note that this flag is always
set to PGA_TRUE when PGASetEvaluation is called.
- PGASetFitnessCmaxValue
-
The value of the multiplier used by
PGAFitnessMinCmax so that the worst string has a nonzero fitness.
The default value is 1.01.
- PGASetFitnessMinType
-
sets the type of algorithm used if a minimization
problem is specified to determine how values are remapped for maximization.
Valid choices are PGA_FITNESSMIN_RECIPROCAL and PGA_FITNESSMIN_CMAX to do
the mapping using the reciprocal of the evaluation function, or by
subtracting the worst evaluation function value from each evaluation
function value, respectively. The default is PGA_FITNESSMIN_CMAX
- PGASetFitnessType
-
Set the type of fitness algorithm to use. Valid choices
are PGA_FITNESS_RAW, PGA_FITNESS_NORMAL, or PGA_FITNESS_RANKING for
raw fitness (the evaluation function value), linear normalization, or
linear ranking, respectively. The default is PGA_FITNESS_RAW.
- PGASetIntegerAllele
-
sets the value of a (integer) allele.
- PGASetIntegerInitPermute
-
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.
- PGASetIntegerInitRange
-
sets a flag to tell the initialization routines to
set each integer-valued gene to a value chosen randomly from the interval
given by an upper and lower bound. No string initialization is done by
this call.
- PGASetMaxFitnessRank
-
The value of the parameter Max when using linear
ranking for fitness determination. The default value is 1.2. The value
must be from the interval [1.0, 2.0]. The fitness type must have been set
to PGA_FITNESS_RANKING with PGASetFitnessType for this function call
to have any effect.
- PGASetMaxGAIterValue
-
specify the maximum number of iterations for the
stopping rule PGA_STOP_MAXITER (which, by itself, is the default stopping
rule and is always in effect). The default value is 1000 iterations.
- PGASetMaxNoChangeValue
-
specifiy maximum number of iterations of no change
in the evaluation function value of the best string before stopping. The
default value is 50. The stopping rule PGA_STOP_NOCHANGE must have been
set by PGASetStoppingRuleType for this function call to have any effect.
- PGASetMaxSimilarityValue
-
Specifiy the maximum percent of homogeneity of
the population before stopping. The similarity measure is the same
evaluation function value. The default value is 95 percent. The stopping
rule PGA_STOP_TOOSIMILAR must have been set by PGASetStoppingRuleType for
this function call to have any effect.
- PGASetMutationAndCrossoverFlag
-
A boolean flag to indicate if
recombination uses both crossover and mutation on selected strings
- PGASetMutationBoundedFlag
-
If this flag is set to PGA_TRUE, then for
Integer and Real strings whenever a gene is mutated, if it underflows
(overflows) the lower (upper)bound it is reset to the lower (upper) bound.
In this way all allele values remain within the range the integer strings
were initialized on. If this flag is PGA_FALSE (the default), the alleles
may take any values.
- PGASetMutationIntegerValue
-
Set multiplier to mutate PGA_DATATYPE_INTEGER
strings with. The use of this value depends on the type of mutation
being used. The default value is 1. See the user guide for more details.
- PGASetMutationOrCrossoverFlag
-
A boolean flag to indicate if recombination
uses exactly one of crossover or mutation on selected strings.
- PGASetMutationProb
-
Specifies the probability that a given allele will
be mutated. If this is called without calling PGASetMutationType(), the
default mutation type is PGA_MUTATION_FIXED. The default probability is
the reciprocal of the string length.
- PGASetMutationRealValue
-
Set multiplier to mutate PGA_DATATYPE_REAL
strings with. The use of this value depends on the type of mutation
being used. The default value is 0.1. See the user guide for more details.
- PGASetNoDuplicatesFlag
-
A boolean flag to indicate if duplicate strings are
allowed in the population. Valid choices are PGA_TRUE and PGA_FALSE. The
default is PGA_FALSE -- allow duplicates.
- PGASetNumReplaceValue
-
specifies the number of new strings to create each
generation. The default is ten percent of the population size
- PGASetPopReplaceType
-
Choose method of sorting strings to copy from old
population to new population. Valid choices are PGA_POPREPL_BEST,
PGA_POPREPL_RANDOM_NOREP, or PGA_POPREPL_RANDOM_REP for copying the best
strings, or random string, with or without replacement, respectively,
from the old population into the new population. The default is
PGA_POPREPL_BEST.
- PGASetPopSize
-
Specifies the size of the genetic algorithm population.
The default population size is 100.
- PGASetPrintFrequencyValue
-
Specifies the frequency with which genetic
algorithm statistics are reported. The default is every 10 GA iterations.
Used only if PGARun() is used to run the GA.
- PGASetPrintOptions
-
set flags to indicate what GA statistics should be
printed whenever output is printed. May be called more than once to
specify different report options. Valid choices are PGA_REPORT_AVERAGE,
PGA_REPORT_OFFLINE, PGA_REPORT_ONLINE, PGA_REPORT_WORST, PGA_REPORT_HAMMING,
and PGA_REPORT_STRING to specify offline analysis, online analysis, the
worst string in the population, the Hamming distance of the population, and
the actual allele values of the best string. The best string is always
printed.
- PGASetPTournamentProb
-
Specifies the probability that the string that wins
a binary tournament will be selected. This function will have no effect
unless PGA_SELECT_PTOURNAMENT was specified as the type of selection to
use with PGASetSelectType. The default value is 0.6.
- PGASetRandomInitFlag
-
A boolean flag to indicate whether to randomly
initialize alleles. Legal values are PGA_TRUE and PGA_FALSE. Default
is PGA_TRUE -- randomly initialize alleles.
- PGASetRandomSeed
-
set a seed for the random number generator. The
default is to use a random seed. Specifying a seed exlicitly allows
for reproducibility of runs.
- PGASetRealAllele
-
sets the value of real-valued allele i in string p
in population pop
- PGASetRealInitPercent
-
sets the upper and lower bounds for randomly
initializing real-valued genes. For each gene these bounds define an
interval from which the initial allele value is selected uniformly randomly.
With this routine the user specifies a median value and a percent offset
for each allele.
- PGASetRealInitRange
-
sets the upper and lower bounds for randomly
initializing real-valued genes. For each gene these bounds define an
interval from which the initial allele value is selected uniformly randomly.
The user specifies two arrays containing lower and bound for each gene to
define the interval. This is the default strategy for initializing
real-valued strings. The default interval is $[0,1.0]$ for each gene.
- PGASetRestartAlleleChangeProb
-
specifies the probability with which
an allele will be mutated during a restart
- PGASetRestartFlag
-
specifies whether the algorithm should employ
the restart operator
- PGASetRestartFrequencyValue
-
specifies the number of iterations of no
change in the best string after which the algorithm should restart
- PGASetSelectType
-
specify the type of selection to use. 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.
- PGASetStoppingRuleType
-
specify a stopping criterion. If called more than
once the different stopping criterion are ORed together. Valid choices
are PGA_STOP_MAXITER, PGA_STOP_TOOSIMILAR, or PGA_STOP_NOCHANGE to
specify iteration limit reached, population too similar, or no change in
the best solution found in a given number of iterations, respectively.
The default is to stop when a maximum iteration limit is reached (by
default, 1000 iterations).
- PGASetUniformCrossoverProb
-
Probability used in uniform crossover
to specify that an allele value value be selected from a particular
parent. The default is 0.6. The crossover type must have been set
to PGA_CROSSOVER_UNIFORM with PGASetCrossoverType for this function
call to have any effect.
- PGASetUp
-
set all uninitialized variables to default values and initialize
some internal arrays. Must be called after PGACreate() and before the GA
is started.
- PGASetUserFunction
-
specifies the name of a user-written function
call to provide a specific GA capability (e.g., crossover,
mutation, etc.). This function MUST be used when using a non-native
datatype and must be called once for each of:
PGA_USERFUNCTION_CREATESTRING -- String creation
PGA_USERFUNCTION_MUTATION -- Mutation
PGA_USERFUNCTION_CROSSOVER -- Crossover
PGA_USERFUNCTION_PRINTSTRING -- String Output
PGA_USERFUNCTION_COPYSTRING -- Duplication
PGA_USERFUNCTION_DUPLICATE -- Duplicate Checking
PGA_USERFUNCTION_INITSTRING -- Initialization
PGA_USERFUNCTION_BUILDDATATYPE -- MPI Datatype creation
PGA_USERFUNCTION_STOPCOND -- Stopping conditions
PGA_USERFUNCTION_ENDOFGEN -- Auxiliary functions at the end
of each generation
It MAY be called when using a native datatype to replace the built-in
functions PGAPack has for that datatype (For example, if the Integer data
type is used for a traveling salesperson problem, the user may want to
provide their own custom crossover operator). See the user guide and the
examples in the examples directory for more details.
- PGASortPop
-
Creates an (internal) array of indices according to one of
three criteria. If PGA_POPREPL_BEST is used (the default) the array is
sorted from most fit to least fit. If PGA_POPREPL_RANDOM_REP is
used the indices in the array are selected randomly with replacement.
If PGA_POPREPL_RANDOM_NOREP is used the indices in the array are selected
randomly without replacement. The function PGASetPopReplaceType() is used
to specify which strategy is used. The indices of the sorted population
members may then be accessed from the internal array via
PGAGetSortedPopIndex(). This routine is typically used during population
replacement.
- PGAStddev
-
calculates the standard deviation of an array of elements
- PGAUpdateGeneration
-
updates internal data structures for the next
genetic algorithm iteration, and checks if the termination conditions, both
user and PGAPack, have been met. This routine must be called by both
master and slave processes at the end of each GA generation.
- PGP::Sign
-
Create detached PGP signatures for data, securely
- photo
-
Full-color images
- phTone
-
The tone class is used to build sampled single and dual frequency tones that may be fed to the telephony device. generated sample tone.
- pid
-
Retrieve process identifiers
- pidfile
-
create a file containing the process id of the current process.
- pilot-qof
-
How QOF relates to pilot-link.
- pipe
-
create an interprocess channel