Skip to main content
. 2021 Apr 20;23(4):491. doi: 10.3390/e23040491
Algorithm 1 Pseudo-code of the TSO approach.
Start the TSO algorithm.
1. Determine the range of decision variables, constraints and objective function of the problem.
2. Create the initial population at random.
3. Evaluate the objective function based on the initial population.
4.   For t = 1:T, with t being iteration number and T the maximum iteration:
5.   Update the good group.
6.       For i = 1:N, with N being the number of population members;
7.           For d = 1:m, with d being the contour and m the number of variables:
8.               Select the j’-th good member.
9.               Stage 1: Update x′id based on (1).
10.               End for d = 1:m.
11.           Update Xi→ based on (2).
12.           For d = 1:m:
13.               Select the k’-th good member, with k ≠ j.
14.               Stage 2: Update x′id based on (3).
15.           End for d = 1:m.
16.           Update Xi→ based on (4).
17.       End for i = 1:N.
18.   Save the best quasi-optimal solution.
19.   End for t = 1:T.
20.   Print the best quasi-optimal solution obtained by the TSO algorithm.
End the TSO algorithm.