Skip to content

owruby/nelder_mead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Nelder-Mead method

The easy implementation of the Nelder-Mead method.

Description

The Nelder-Mead is the one of derivative-free optimization method. This method is called simplex method or ameba method.

result

Installation

pip install git+https://github.com/owruby/nelder_mead.git

Dependencies

  • numpy

Usage

from nelder_mead import NelderMead


def sphere(x):
    return sum([t**2 for t in x])


def main():
    func = sphere
    params = {
        "x1": ["real", (-512, 512)],
        "x2": ["real", (-512, 512)],
    }

    nm = NelderMead(func, params)
    nm.minimize(n_iter=30)


if __name__ == "__main__":
    main()

References

About

A Python easy implementation of the Nelder-Mead method

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages