Shock and Vibration / 2021 / Article / Tab 2 / Research Article
Optimal Allocation and Control of Magnetorheological Dampers for Enhancing Seismic Performance of the Adjacent Structures Using Whale Optimization Algorithm Table 2 The pseudocode of Step
9 of the design process.
Update each position X i with the following steps: Update the algorithm parameters including a , b , A , C , l , and p defined in Section 3 Judge whether p < 0.5If yes, Judge whether , which is defined in Section 3 If yes, randomly determine a position in the range of the current population, and update the position Xi according to equation (19 ) else update the position Xi based on according to equation (14 ) end else conduct spiral position updating according to equation (17 ) end Judge whether every code of the position X i is within the predefined value rangesIf yes , keep the position X i else replace the code of the position X i with the corresponding limit value end t = t + 1