View source: R/LocalSearchFSFunctions.R
GRASPFS | R Documentation |
A greedy randomized adaptive search procedure (GRASP) for the permutative flowshop. At each iteration, it generates a solution based on the Palmer heuristic. Instead of picking the best element, it picks an element randomly among a restricted candidate list, consisting on the first rcl
first elements of the Palmer ordering. Then, this solution is improved with a local search heuristic.
GRASPFS(M, rcl = 4, iter = 100, op = "swap", opt = "HC", ...)
M |
A matrix object storing the time to process task j (column) in machine i (row). |
rcl |
the size of the restricted candidate list. |
iter |
number of iterations. |
op |
The neighbourhood operator for the local search heuristic. Presently are implemented |
opt |
the local search algorithm to implement. Presently are supported |
sol The obtained solution.
obj The makespan of the obtained solution.
set.seed(2020) instance <- matrix(sample(10:90, 100, replace=TRUE), 5, 20) GRASPFS(M=instance)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.