Skip to main content
. 2021 Jan 14;23(1):108. doi: 10.3390/e23010108
Algorithm 2. Pseudocode of the k-level hierarchical iterated tabu search algorithm.
k-Level_Hierarchical_Iterated_Tabu_Search procedure;
/ input: p—current solution
/ output: p—the best found solution
/ parameter: Qk—number of iterations of the k-level HITS algorithm
begin
p: = p;
for qk: = 1 to Qk do begin
  apply k–1-Level_Hierarchical_Iterated_Tabu_Search to p and get p;
  if z(p) < z(p) then p: = p; / the best found solution is memorized
  if qk < Qk then begin
   p: = Candidate_Acceptance(p, p);
   apply mutation procedure to p
  endif
endfor
end.