Function PGASetRealInitPercent

Function Documentation

static inline void PGASetRealInitPercent(PGAContext *ctx, double *median, double *frac)

Set the upper and lower bounds for randomly initializing real-valued genes.

Description

This function is deprecated due to wrong naming: The last parameter was always a fraction, not a percentage. It is kept for backwards compatibility, do not use for new code. Use PGASetRealInitFraction() instead.

Parameters
  • ctx – context variable

  • median – an array containing the mean value of the interval

  • frac – an array containing the fraction of median to add and subtract to/from the median to define the interval

Returns

None