solutionFunctionGeneratorPermutation: Permutation Generator Function

View source: R/permutationOperators.R

solutionFunctionGeneratorPermutationR Documentation

Permutation Generator Function

Description

Returns a function that generates random permutations of length N. Can be used to generate individual solutions for permutation problems, e.g., Travelling Salesperson Problem

Usage

solutionFunctionGeneratorPermutation(N)

Arguments

N

length of the permutations returned

Value

returns a function, without any arguments

Examples

fun <- solutionFunctionGeneratorPermutation(10)
fun()
fun()
fun()


CEGO documentation built on May 29, 2024, 3:35 a.m.