benchmarkGeneratorWT: Create single-machine total Weighted Tardiness (WT) Problem...

Description Usage Arguments Value See Also Examples

View source: R/permutationBenchmarkFunctions.R

Description

Creates a benchmark function for the single-machine total Weighted Tardiness Problem.

Usage

1

Arguments

p

processing times

w

weights

d

due dates

Value

the function of type cost=f(permutation)

See Also

benchmarkGeneratorQAP, benchmarkGeneratorTSP, benchmarkGeneratorFSP

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
n=6
#processing times
p <- sample(100,n,replace=TRUE)
#weights
w <- sample(10,n,replace=TRUE)
#due dates
RDD <- c(0.2, 0.4, 0.6,0.8,1.0)
TF <- c(0.2, 0.4, 0.6,0.8,1.0)
i <- 1
j <- 1
P <- sum(p)
d <- runif(n,min=P*(1-TF[i]-RDD[j]/2),max=P*(1-TF[i]+RDD[j]/2))
#create WT objective function
fun <- benchmarkGeneratorWT(p,w,d)
fun(1:n)
fun(n:1)	

CEGO documentation built on May 14, 2021, 1:08 a.m.