gaintegerMutation: Integer mutation operator for genetic algorithms

View source: R/gaintegerMutation.R

gaintegerMutationR Documentation

Integer mutation operator for genetic algorithms

Description

Applies mutation to a selected parent vector by replacing each gene with a random value (within bounds) with a given mutation probability. Used in integer-encoded GAs.

Usage

gaintegerMutation(object, parent, ...)

Arguments

object

A GA object containing at least the slots @population, @upper, @lower, and @pmutation.

parent

An integer index indicating which individual in the population to mutate.

...

Further arguments (unused, included for compatibility).

Value

A numeric vector representing the mutated individual.


SIMPLICA documentation built on Sept. 11, 2025, 1:08 a.m.