Would this line of code in bat_algorithm.m:
% Apply simple bounds/limits
be moved to just above the line of
% Evaluate new solutions
and be modified to:
so that we may not have solutions outside the lower and upper bound?