Skip to main content
. 2021 Jan 14;23(1):108. doi: 10.3390/e23010108
Algorithm 5. Pseudo-code of the procedure for recalculation of the differences of the objective function.
Recalculation_of_the_Differences_of_the_Objective_Function procedure;
/ input: ξ—mutation rate, p—initial permutation before mutation, r—random index array, Ξ—current differences
/ output: Ξ—new differences
begin
for l: = 1 toξ − 1 do begin
  u: = r(l); v: = r(l + 1); p: = ϕ(p, u, v);
  recalculate values of the matrix Ξ
endfor
end.