RouletteWheelSelection: Roulette Wheel Selection

View source: R/ALO_opt.R

RouletteWheelSelectionR Documentation

Roulette Wheel Selection

Description

Function used to select an individual index based on fitness-proportional selection (inverse fitness weight).

Usage

RouletteWheelSelection(weights)

Arguments

weights

A numeric vector of weights.

Value

An integer representing the selected index.

Note

This function used inside ALO function to probabilistically select antlions for guiding ants.


metaSVR documentation built on Aug. 21, 2025, 5:58 p.m.