View source: R/LocalSearchFSFunctions.R
TSFS | R Documentation |
An implementation of a tabu search heuristic for the flowshop.
TSFS( M, inisol, iter = 100, tabu.size = 5, op = "swap", asp = TRUE, eval = FALSE, early = FALSE )
M |
A matrix object storing the time to process task j (column) in machine i (row). |
inisol |
The starting solution. |
iter |
the number of iterations to run (see |
tabu.size |
the length of the tabu list. The tabu list stores the number of tabu moves obtained in the last |
asp |
if |
eval |
if set to |
early |
if set to |
sol The obtained solution.
obj The makespan of the obtained solution.
evalfit (returned if eval=TRUE
) the value of the makespan of the examined solution in each iteration.
evalbest (returned if eval=TRUE
) the value of the best solution obtained in each iteration.
set.seed(2020) instance <- matrix(sample(10:90, 100, replace=TRUE), 5, 20) TSFS(M=instance, inisol=PalmerTrapezes(instance)$tra, iter=25, op="insertion", early=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.