Skip to main content
# neldermead

Nelder-Mead implementation

[![CircleCI](https://circleci.com/gh/nmasahiro/neldermead.svg?style=shield)](https://circleci.com/gh/nmasahiro/neldermead)

## Getting Started


### Prerequisites

You need only [NumPy](http://www.numpy.org/) that is the package for scientific computing.

### Installing

Please run the following command.

```bash
$ pip install neldermead
```

## Example

This is a simple example that objective function is sphere function.

```python
import numpy as np
from neldermead import NelderMead

dim = 3
f = lambda x: np.sum(x**2)
simplex = np.zeros([dim, dim + 1])
for i in range(dim + 1):
simplex[:, i] = np.array([np.random.rand() for _ in range(dim)])
nm = NelderMead(dim, f, simplex)

x_best, f_best = nm.optimize(100)
print("x_best:{}, f_best:{}".format(x_best, f_best))
#x_best:[[-1.48045204e-08]
# [-1.80962770e-08]
# [ 5.08040874e-08]], f_best:3.1277043680572982e-15
```


## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/nmasahiro/neldermead/tags).


## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/nmasahiro/neldermead/blob/master/LISENCE) file for details


Release files for neldermead 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neldermead 0.0.12
File Size Uploaded
neldermead-0.0.12.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neldermead 0.0.12
File Interpreter ABI Platform
neldermead-0.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / neldermead-0.0.12.tar.gz

Download URL neldermead-0.0.12.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5f911466441f9720042a44cfe3f1a5e859bf18cd80904fc1f93f49464baba66a
BLAKE2b-256 checksum
How to use checksums
ceb568b0712c4a731493b0aa0a54c23fe97253ca14201944853065912b9c7ad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

Release files / neldermead-0.0.12-py3-none-any.whl

Download URL neldermead-0.0.12-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c423b188ad0149c97fd6b0abf268d7bc8998e154982edb243e3bedfd3743550
BLAKE2b-256 checksum
How to use checksums
db566677abc6d4d561b17a0e4dbc250708f0a35653898ee741dab5302082feab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page