| Algorithm 1: Modified Crow Search Algorithm (MCSA) |
|
//Problem Initialization The objective function(minimize the distance error) : The fitness Function : Decision variable lir : The flock size : maximum number of iterations : A vector for the position of crow i at time iter in the search space obtained from the mathematical approach : The length of flight of crow in specific iteration : The probability of awareness : Number of crows of the flock : The feasible solution vector(the intermediate area obtained from the CBA) : A random number with uniform distribution between 0 and 1 1. Positions and memories Initialization For Each in Generate () Fill() //2. Fitness function Evaluation Calculate () //3. New position Generation For Each in Rand_Select () If > Generate Generate //4. Check feasibility of new positions For Each in Check-Feasibility If No- //5. Evaluate fitness function for new positions For Each in Calculate () //6. Update memory For Each in If Else No- //7. Check termination criterion If i Repeat step 1 |