[SciPy-User] (Possible) new optimization routines - scipy.optimize

Andrea Gavana andrea.gavana@gmail....
Thu Feb 14 15:01:28 CST 2013

Hi All,

    as my team and I are constantly facing very hard/complex numerical
optimization problems, I have taken a look at the various *global*
optimization routines available in Python and I thought I could throw
in a couple of algorithms I implemented, mostly drawing from my
previous thesis work.

I have implemented two routines (based on numpy and scipy), namely:

- AMPGO: Adaptive Memory Programming for Global Optimization: this is my Python
  implementation of the algorithm described here:


  I have added a few improvements here and there based on my Master Thesis work
  on the standard Tunnelling Algorithm of Levy, Montalvo and Gomez.

- Firefly:  the Firefly algorithm, this is my Python implementation of
the procedure
  described here:


As it appears that most numerical optimization "experts" still report
their benchmark results based on "CPU time" or "elapsed time" or
similar meaningless performance indicators, I have built a fairly
sizeable benchmark test suite to test various optimization routines.
The test suite currently contains:

- 18 one-dimensional test functions with multiple local/global minima;
- 85 multivariate problems (where the number of independent variables
ranges from 2 to 10), again with multiple local/global minima.

The main page describing the rules, algorithms and motivation is here:


Algorithms comparisons:


Test functions:


The overall conclusion is that, while the Firefly method performances
are average at best, AMPGO is superior to all the other algorithms I
have tried. However, to be fair, it is an algorithm designed for
low-dimensional optimization problems (i.e., 1-10 variables).

I haven't published the code for the two algorithms (yet), as they are
not quite up to the documentation standards of scipy. However, if
there is interest from the community to add them (or one of them) to
scipy.optimize I will be happy to polish them up and contribute to
this great library. The same applies to the benchmark test suite.


"Imagination Is The Only Weapon In The War Against Reality."

# ------------------------------------------------------------- #
def ask_mailing_list_support(email):

    if mention_platform_and_version() and include_sample_app():
# ------------------------------------------------------------- #

More information about the SciPy-User mailing list