A python wrapper for biteopt
This package provides a scipy.optimize like API for the powerful global optimization algorithm biteopt. It is a fork of another biteopt wrapper.
Installation
pip install scipybiteopt
Note that the installation requires a C++ compiler.
Example usage: optimizing the six-hump camel back function
import scipybiteopt
def camel(x):
"""Six-hump camelback function"""
x1 = x[0]
x2 = x[1]
f = (4 - 2.1*(x1*x1) + (x1*x1*x1*x1)/3.0)*(x1*x1) + x1*x2 + (-4 + 4*(x2*x2))*(x2*x2)
return f
bounds = [(-4, 4), (-4, 4)]
res = scipybiteopt.biteopt(camel, bounds)
print("Found optimum: ", res.x)
Biteopt version
The underlying biteopt version can be found via
import scipybiteopt
scipybiteopt.__source_version__
Citing
@misc{biteopt2021,
author = {Aleksey Vaneev},
title = {{BITEOPT - Derivative-free optimization method}},
note = {C++ source code, with description and examples},
year = {2021},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {Available at \url{https://github.com/avaneev/biteopt}},
}
Metadata
Release files for scipybiteopt 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scipybiteopt-1.2.tar.gz | 32.3 kB | Without provenance | Details for scipybiteopt-1.2.tar.gz |
Release files / scipybiteopt-1.2.tar.gz
| Download URL | scipybiteopt-1.2.tar.gz |
|---|---|
| Size | 32.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
faf549450d39f2f18f1c8aa0fb1fc263e35a22ee591720b7e2e097f2980cd947
|
|
BLAKE2b-256 checksum How to use checksums |
dd6e4580dd208dbeb05b75bb3244272bc8806ec78bcb5d820b16c89424921e40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for scipybiteopt 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.