View source: R/LocalSearchFSFunctions.R
SAFS | R Documentation |
An implementation of a simulated annealing heuristic for the flowshop.
SAFS(M, inisol, Tmax = 1000, mu = 1, op = "swap", eval = FALSE)
M |
A matrix object storing the time to process task j (column) in machine i (row). |
inisol |
The starting solution. |
Tmax |
the maximum value of temperature, representing the number of iterations of the algorithm. |
mu |
a parameter tuning the value of probability of selection a solution worse than the presently explored. Higher values of |
op |
The neighbourhood operator. Presently are implemented |
eval |
if set to |
sol The obtained solution.
obj The makespan of the obtained solution.
evaltest (returned if eval=TRUE
) the value of the tested solution in each iteration.
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) SAFS(M=instance, inisol=PalmerTrapezes(instance)$tra, Tmax=10000, mu=1000, op="insertion")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.