Learn R Programming

CEGO (version 2.4.3)

benchmarkGeneratorFSP: Create Flow shop Scheduling Problem (FSP) Benchmark

Description

Creates a benchmark function for the Flow shop Scheduling Problem.

Usage

benchmarkGeneratorFSP(a, n, m)

Value

the function of type cost=f(permutation)

Arguments

a

matrix of processing times for each step and each machine

n

number of jobs

m

number of machines

See Also

benchmarkGeneratorQAP, benchmarkGeneratorTSP, benchmarkGeneratorWT

Examples

Run this code
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)

Run the code above in your browser using DataLab