Research Article

Three New Stochastic Local Search Metaheuristics for the Annual Crop Planning Problem Based on a New Irrigation Scheme

Algorithm 3

 Set the size of the Solutions List,
 Populate the Solutions List ( ) with random solutions
 Calculate the fitness values of the solutions in , i.e.
  
 Set the no. of absolute differences to consider,
 Set the best solution ( ) and best fitness ( ) using
  
for to do
 (6.1) = Select , e.g. Random[0, ]
 (6.2) = Select , e.g. Random[0, ]
         ( )
 (6.3)
 (6.4)
 (6.5)
 (6.6) Perform_LS 
 (6.7) Evaluate (
 (6.8) Evaluate (
 (6.9) if better than then
     (6.9.1)
     (6.9.2)
     (6.9.3) if better than then
     (6.9.3.1)
     (6.9.3.2)
     (6.9.4) end if
 (6.10) end if
 (6.11) if better than then
     (6.11.1)
     (6.11.2)
     (6.11.3) if better than then
      (6.11.3.1)
      (6.11.3.2)
     (6.11.4) end if
 (6.12) end if
end for
return