View source: R/permutationOperators.R
solutionFunctionGeneratorPermutation | R Documentation |
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
solutionFunctionGeneratorPermutation(N)
N |
length of the permutations returned |
returns a function, without any arguments
fun <- solutionFunctionGeneratorPermutation(10)
fun()
fun()
fun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.