Skip to main content
. 2023 Jan 10;9:e1192. doi: 10.7717/peerj-cs.1192

Algorithm 4. Repair (T level_max, Ni(I = 1,…,7)).

Require: T, level_max, Ni(i = 1,…,7) are the infeasible solution, the parameter to control the strength of the perturbation procedure, and the number of neighbourhood respectively.
Ensure: An feasible solution T.
1: level = 1;
2: while ((T is infeasible solution) and (level level_max)) do
3: T= Perturbation(T, level);
4: for i:16 do
5: TargminNi(T); {local search}
6: if (L(T<L(T)) then
7: TT
8: i1
9: else
10: i++
11: if L(T)<L(T) then
12: TT;
13: if L(T)==L(T) then
14: level1;
15: else
16: level++;
17: return T;