View source: R/LocalSearchFSFunctions.R
HCFS | R Documentation |
A hill climbing heuristic for pemutative flowshop. In each iteration, it finds the element of the neighbourhood of the present solution with lowest makespan. If the obtained solution improves the existing solution, a new iteration is performed. If not, the algorithm stops.
HCFS(M, inisol, op = "swap")
M |
A matrix object storing the time to process task j (column) in machine i (row). |
inisol |
The starting solution. |
op |
The neighbourhood operator. Presently are implemented |
sol The obtained solution.
obj The makespan of the obtained solution.
set.seed(2020) instance <- matrix(sample(10:90, 100, replace=TRUE), 5, 20) HCFS(M=instance, inisol=PalmerTrapezes(instance)$tra, op="insertion")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.