| Algorithm 2 Improved Multi-strategy Crayfish Optimization Algorithm (IMCOA) |
| Initialization: Iterations T, Population Np, Dimension Dim; Randomly generate an initial population and assess the fitness values to obtain XGbest and XLbest |
| While (t < T) do |
| Defining temperature temp by Equation (2) |
| Calculate Score of each agent according to Equation (16) |
| If temp > 30 |
| Define a cave Xcc based on Equation (10) |
| If rand < 0.5 |
| Update the crayfish position according to Equation (15) |
| Else |
| Update the crayfish position according to Equation (18) |
| End |
| Else |
| Calculate food intake prop and food size Q are obtained by Equations (3) and (7) |
| Calculate cov and Xmean according to Equations (20) and (21) |
| If Q > (C3 + 1)/2 |
| Update the crayfish position according to Equation (8) |
| Else |
| Update the crayfish position according to Equation (19) |
| End |
| End |
| Update fitness values, XGbest, XLbest |
| Update XGbest according to Equations (20), (24) and (25) |
| t = t + 1 |
| End while |