View source: R/permutationBenchmarkFunctions.R
benchmarkGeneratorFSP | R Documentation |
Creates a benchmark function for the Flow shop Scheduling Problem.
benchmarkGeneratorFSP(a, n, m)
a |
matrix of processing times for each step and each machine |
n |
number of jobs |
m |
number of machines |
the function of type cost=f(permutation)
benchmarkGeneratorQAP
, benchmarkGeneratorTSP
, benchmarkGeneratorWT
n=10
m=4
#ceate a matrix of processing times
A <- matrix(sample(n*m,replace=TRUE),n,m)
#create FSP objective function
fun <- benchmarkGeneratorFSP(A,n,m)
#evaluate
fun(1:n)
fun(n:1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.