I have a function is not unimodal, it has multimodes. The function does not have a global optimum as such but has several optimums. Is there an optimization algorithm that deals with functions that have several maximas and minimas ( analytical techniques or numerical techniques)
I believe that having several optimal solutions is different than the existence of local maxima or minima as the term signifies that there is also a global maxima/minima that exists. While my function has various maximas and minimas. Please correct me if I am wrong?

The function is complicated and therefore natural techniques of differentiation wouldn't be of much use.