tournament: Tournament function

Description Usage Arguments Value

View source: R/tournament.R

Description

This function simulates selection of next generation of agents according to their fitness.

Usage

1
tournament(agents, fitness)

Arguments

agents

A list of agents to be assessed by fitness

fitness

The fitness vector on which agents will be assessed. Each element in the vector identifies a single agent's fitness

Value

agents A new list of agents selected according to fitness


bradduthie/gamesGA documentation built on March 7, 2020, 2:20 p.m.