Skip to main content
. 2023 Oct 23;8(6):508. doi: 10.3390/biomimetics8060508
Algorithm 1: Pseudocode of TVETBO.
Start TVETBO.
1. Input problem information: variables, objective function, and constraints.
2. Set the TVETBO population size (N) and iterations (T).
3. Generate the initial population matrix at random using Equation (2). ai,d←lbd+r·(ubd−lbd)
4. Evaluate the objective function.
5. For t=1 to T
6. For i=1 to N
7. Phase 1: theory education (exploration)
8. Update the best population member as the instructor.
9. Calculate the new position of the ith TVETBO member using Equation (4). ai,dP1=ai,d+r·(Id−S·ai,d)
10. Update the ith TVETBO member using Equation (5). Ai←{AiP1,FiP1<FiAi,else
11. Phase 2: practical education (exploration)
12. Calculate the imitation coefficient of the instructor’s skill using Equation (6). K(t)←r ·tT
13. Calculate the new position of the ith TVETBO member using Equation (7). ai,dP2←Id+K(t)(ai,d−Id)
14. Update the ith TVETBO member using Equation (8). Ai={AiP2,FiP2<FiAi,else
15. Phase 3: individual skills development (exploitation)
16. Calculate the new position of the ith TVETBO member using Equation (9). ai,dP3=ai,d+(1−2r)·(ubd−lbd)t
17. Update the ith TVETBO member using Equation (10). Ai={AiP3,FiP3<FiAi,else
18. End
19. Save the best candidate solution so far.
20. End
21. Output the best quasi-optimal solution obtained with the TVETBO.
End TVETBO.