Research Article

Machine Learning-Based Sine-Cosine Algorithm for Wastewater Quality Assessment Using Activated Carbon

Algorithm 2

SCA.
Step 1: initialize the random population solutions, .
Step 2: by using Equation (4), the value of is used to switch from explore to exploit. It gradually decreases from 2 to 0.
Step 3: while do.
Step 4: compute the fitness value for each solution.
Step 5: express that has the best fitness value .
Step 6: update values.
Step 7: use Equation (4) to update
Step 8: end while
Step 9: output